Table of Contents

Class WorkflowBuildOptionsExtensions.InjectionBuildOptions

Namespace
Invex.Atom.Workflows.Options
Assembly
Invex.Atom.Workflows.dll

Provides factories for injecting parameters, secrets, and environment variables into generated workflows.

public sealed class WorkflowBuildOptionsExtensions.InjectionBuildOptions
Inheritance
object
WorkflowBuildOptionsExtensions.InjectionBuildOptions

Constructors

InjectionBuildOptions()

public InjectionBuildOptions()

Methods

EnvironmentVariable(string, Template)

Injects an environment variable into the workflow with the provided value expression.

public WorkflowEnvironmentVariableInjection EnvironmentVariable(string name, Template value)

Parameters

name string

The name of the environment variable.

value Template

The expression that produces the variable value in the workflow.

Returns

WorkflowEnvironmentVariableInjection

A WorkflowEnvironmentVariableInjection option.

Param(ParamDefinition, Template)

Injects a parameter value into the workflow using the provided expression.

public WorkflowParamInjection Param(ParamDefinition paramDefinition, Template injectionExpression)

Parameters

paramDefinition ParamDefinition

The definition of the parameter to inject.

injectionExpression Template

The expression that produces the parameter value in the workflow.

Returns

WorkflowParamInjection

A WorkflowParamInjection option.

Param(string, Template)

Injects a parameter value into the workflow using the provided expression.

public WorkflowParamInjection Param(string paramName, Template injectionExpression)

Parameters

paramName string

The name of the parameter to inject.

injectionExpression Template

The expression that produces the parameter value in the workflow.

Returns

WorkflowParamInjection

A WorkflowParamInjection option.

ParamFromWorkflowEnvironment(string)

Injects a parameter whose value is sourced from the workflow's environment.

public WorkflowParamInjectionFromEnvironment ParamFromWorkflowEnvironment(string name)

Parameters

name string

The name of the parameter to inject.

Returns

WorkflowParamInjectionFromEnvironment

A WorkflowParamInjectionFromEnvironment option.

Secret(ParamDefinition)

Injects a secret into the workflow from the platform's secret store.

public WorkflowSecretInjection Secret(ParamDefinition secretDefinition)

Parameters

secretDefinition ParamDefinition

The definition of the secret parameter to inject.

Returns

WorkflowSecretInjection

A WorkflowSecretInjection option.

Secret(string)

Injects a secret into the workflow from the platform's secret store.

public WorkflowSecretInjection Secret(string secretName)

Parameters

secretName string

The name of the secret to inject.

Returns

WorkflowSecretInjection

A WorkflowSecretInjection option.

SecretForSecretProvider(ParamDefinition)

Injects a secret that is resolved by a registered ISecretsProvider at build time, rather than from the platform's secret store.

public WorkflowSecretInjectionForSecretProvider SecretForSecretProvider(ParamDefinition secretDefinition)

Parameters

secretDefinition ParamDefinition

The definition of the secret parameter to inject.

Returns

WorkflowSecretInjectionForSecretProvider

A WorkflowSecretInjectionForSecretProvider option.

SecretForSecretProvider(string)

Injects a secret that is resolved by a registered ISecretsProvider at build time, rather than from the platform's secret store.

public WorkflowSecretInjectionForSecretProvider SecretForSecretProvider(string secretName)

Parameters

secretName string

The name of the secret to inject.

Returns

WorkflowSecretInjectionForSecretProvider

A WorkflowSecretInjectionForSecretProvider option.

SecretFromWorkflowEnvironment(ParamDefinition)

Injects a secret whose value is sourced from the workflow's environment.

public WorkflowSecretInjectionFromEnvironment SecretFromWorkflowEnvironment(ParamDefinition secretDefinition)

Parameters

secretDefinition ParamDefinition

The definition of the secret parameter to inject.

Returns

WorkflowSecretInjectionFromEnvironment

A WorkflowSecretInjectionFromEnvironment option.

SecretFromWorkflowEnvironment(string)

Injects a secret whose value is sourced from the workflow's environment.

public WorkflowSecretInjectionFromEnvironment SecretFromWorkflowEnvironment(string secretName)

Parameters

secretName string

The name of the secret to inject.

Returns

WorkflowSecretInjectionFromEnvironment

A WorkflowSecretInjectionFromEnvironment option.