Assembly: OptimaJet.Workflow.Core

Interface ICodeActionBuilder

OptimaJet.Workflow.Core.Model.Builder.ICodeActionBuilder

Provides fluent configuration of a CodeActionDefinition created by the Programmatic Scheme Builder.

public interface ICodeActionBuilder : IProcessDefinitionBuilder

Type Hierarchy

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
ICodeActionBuilder
This ICodeActionBuilder so that additional configuration can be chained.
ICodeActionBuilder Sync() #
Configures the current CodeActionDefinition to be compiled and invoked synchronously.

Returns

Type
Description
ICodeActionBuilder
This 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
code
String
The C# method body to assign to CodeActionDefinition.ActionCode.

Returns

Type
Description
ICodeActionBuilder
This 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
usings
String[]
The namespace names to import. Entries are trimmed, empty entries are ignored, and duplicates are removed.

Returns

Type
Description
ICodeActionBuilder
This ICodeActionBuilder so that additional configuration can be chained.

Exceptions

Type
Description
ArgumentException
Thrown 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
usings
String[]
The namespace names to add. Entries are trimmed, empty entries are ignored, and duplicates are removed.

Returns

Type
Description
ICodeActionBuilder
This ICodeActionBuilder so that additional configuration can be chained.

Exceptions

Type
Description
ArgumentException
Thrown 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
usings
String[]
The namespace names to remove.

Returns

Type
Description
ICodeActionBuilder
This ICodeActionBuilder so that additional configuration can be chained.
ICodeActionBuilder ClearUsings() #
Clears the code-action-specific namespace imports stored in CodeActionDefinition.Usings.

Returns

Type
Description
ICodeActionBuilder
This 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
usings
String[]
The namespace names to exclude. Entries are trimmed, empty entries are ignored, and duplicates are removed.

Returns

Type
Description
ICodeActionBuilder
This ICodeActionBuilder so that additional configuration can be chained.

Exceptions

Type
Description
ArgumentException
Thrown 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
usings
String[]
The namespace names to exclude. Entries are trimmed, empty entries are ignored, and duplicates are removed.

Returns

Type
Description
ICodeActionBuilder
This ICodeActionBuilder so that additional configuration can be chained.

Exceptions

Type
Description
ArgumentException
Thrown 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
usings
String[]
The namespace names to remove from the exclusion list.

Returns

Type
Description
ICodeActionBuilder
This 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
ICodeActionBuilder
This ICodeActionBuilder so that additional configuration can be chained.