Interface IExecutionProfileOptions
Utility builder that is used to add Execution Profiles to a Cluster instance. See WithExecutionProfiles(Action<IExecutionProfileOptions>).
Namespace: Dse
Assembly: Dse.dll
Syntax
public interface IExecutionProfileOptions
Methods
WithDerivedProfile(String, String, Action<IExecutionProfileBuilder>)
The behavior of this method is the same as WithProfile(String, Action<IExecutionProfileBuilder>) but
instead of adding a normal execution profile, this method can be used to add a derived execution profile
which is a profile that will inherit any unset settings from the base execution profile specified by baseProfile
.
Declaration
IExecutionProfileOptions WithDerivedProfile(string name, string baseProfile, Action<IExecutionProfileBuilder> profileBuildAction)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the execution profile. |
System.String | baseProfile | Base Execution Profile's name from which the derived profile will inherit unset settings. |
System.Action<IExecutionProfileBuilder> | profileBuildAction | Execution Profile builder. |
Returns
Type | Description |
---|---|
IExecutionProfileOptions |
WithProfile(String, Action<IExecutionProfileBuilder>)
Adds an execution profile to this ExecutionProfileOptions instance. The name that is provided here is the name that must be provided to the several driver APIs that support execution profiles like ExecuteAsync(IStatement, String) or WithExecutionProfile(String).
Declaration
IExecutionProfileOptions WithProfile(string name, Action<IExecutionProfileBuilder> profileBuildAction)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the execution profile. |
System.Action<IExecutionProfileBuilder> | profileBuildAction | Execution Profile builder. |
Returns
Type | Description |
---|---|
IExecutionProfileOptions |