Interface ICodeActionBuilder
OptimaJet.Workflow.Core.Model.Builder.ICodeActionBuilder
Provides fluent configuration of a CodeActionDefinition created by the Programmatic Scheme Builder.
Namespace: OptimaJet.Workflow.Core.Model.Builder
public interface ICodeActionBuilder : IProcessDefinitionBuilderType Hierarchy
- ICodeActionBuilder Current type
- Base interfaces
Properties
CodeActionDefinition CodeAction { get; } #Gets the CodeActionDefinition selected for configuration.
Methods
ICodeActionBuilder Async() #Configures the current CodeActionDefinition to be compiled and invoked asynchronously.
Returns
Type
Description
ICodeActionBuilderThis ICodeActionBuilder so that additional configuration can be chained.
ICodeActionBuilder Sync() #Configures the current CodeActionDefinition to be compiled and invoked synchronously.
Returns
Type
Description
ICodeActionBuilderThis ICodeActionBuilder so that additional configuration can be chained.
ICodeActionBuilder Code(string code) #Sets the C# method body of the current CodeActionDefinition.
Parameters
Name
Type
Description
Returns
Type
Description
ICodeActionBuilderThis ICodeActionBuilder so that additional configuration can be chained.
ICodeActionBuilder SetUsings(params string[] usings) #Replaces the code-action-specific namespace imports stored in CodeActionDefinition.Usings.
Parameters
Name
Type
Description
usingsString[]The namespace names to import. Entries are trimmed, empty entries are ignored, and duplicates are removed.
Returns
Type
Description
ICodeActionBuilderThis ICodeActionBuilder so that additional configuration can be chained.
Exceptions
Type
Description
ArgumentExceptionThrown when an element of
usings contains a semicolon.ICodeActionBuilder AddUsings(params string[] usings) #Adds code-action-specific namespace imports to CodeActionDefinition.Usings.
Parameters
Name
Type
Description
usingsString[]The namespace names to add. Entries are trimmed, empty entries are ignored, and duplicates are removed.
Returns
Type
Description
ICodeActionBuilderThis ICodeActionBuilder so that additional configuration can be chained.
Exceptions
Type
Description
ArgumentExceptionThrown when an element of
usings contains a semicolon.ICodeActionBuilder RemoveUsings(params string[] usings) #Removes code-action-specific namespace imports from CodeActionDefinition.Usings.
Parameters
Name
Type
Description
usingsString[]The namespace names to remove.
Returns
Type
Description
ICodeActionBuilderThis ICodeActionBuilder so that additional configuration can be chained.
ICodeActionBuilder ClearUsings() #Clears the code-action-specific namespace imports stored in CodeActionDefinition.Usings.
Returns
Type
Description
ICodeActionBuilderThis ICodeActionBuilder so that additional configuration can be chained.
ICodeActionBuilder SetExcludedUsings(params string[] usings) #Replaces the code-action-specific namespace-import exclusions stored in CodeActionDefinition.ExcludedUsings.
Parameters
Name
Type
Description
usingsString[]The namespace names to exclude. Entries are trimmed, empty entries are ignored, and duplicates are removed.
Returns
Type
Description
ICodeActionBuilderThis ICodeActionBuilder so that additional configuration can be chained.
Exceptions
Type
Description
ArgumentExceptionThrown when an element of
usings contains a semicolon.ICodeActionBuilder AddExcludedUsings(params string[] usings) #Adds code-action-specific namespace-import exclusions to CodeActionDefinition.ExcludedUsings.
Parameters
Name
Type
Description
usingsString[]The namespace names to exclude. Entries are trimmed, empty entries are ignored, and duplicates are removed.
Returns
Type
Description
ICodeActionBuilderThis ICodeActionBuilder so that additional configuration can be chained.
Exceptions
Type
Description
ArgumentExceptionThrown when an element of
usings contains a semicolon.ICodeActionBuilder RemoveExcludedUsings(params string[] usings) #Removes code-action-specific namespace-import exclusions from CodeActionDefinition.ExcludedUsings.
Parameters
Name
Type
Description
usingsString[]The namespace names to remove from the exclusion list.
Returns
Type
Description
ICodeActionBuilderThis ICodeActionBuilder so that additional configuration can be chained.
ICodeActionBuilder ClearExcludedUsings() #Clears the code-action-specific namespace-import exclusions stored in CodeActionDefinition.ExcludedUsings.
Returns
Type
Description
ICodeActionBuilderThis ICodeActionBuilder so that additional configuration can be chained.