Interface IExecutionProfileOptions
Utility builder that is used to add Execution Profiles to a Cluster instance. See WithExecutionProfiles(Action<IExecutionProfileOptions>).
Namespace: Cassandra
Assembly: Cassandra.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 |
---|---|---|
string | name | Name of the execution profile. |
string | baseProfile | Base Execution Profile's name from which the derived profile will inherit unset settings. |
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 |
---|---|---|
string | name | Name of the execution profile. |
Action<IExecutionProfileBuilder> | profileBuildAction | Execution Profile builder. |
Returns
Type | Description |
---|---|
IExecutionProfileOptions |