Click or drag to resize

HpsvSequenceBuilderBaseGetOrCreate Method

Gets existing sequence by name or creates new one (using configure) from current scope

Namespace:  HP.SV.DotNetRuleApi
Assembly:  HP.SV.DotNetRuleApi (in HP.SV.DotNetRuleApi.dll) Version: 5.3.0.9999-localBuild
Syntax
C#
public HpsvSequence GetOrCreate(
	string name,
	Action<ISequenceConfigurer> configure = null
)

Parameters

name
Type: SystemString
The name of the sequence
configure (Optional)
Type: SystemActionISequenceConfigurer
Callback specifying how the sequence should be configured. You can override each value using dot notation, see example bellow. For default/valid values check ISequenceConfigurer

Return Value

Type: HpsvSequence
The sequence
Exceptions
ExceptionCondition
ArgumentNullExceptionname is null.
Examples
var sequence = hpsv.SequenceBuilder.GetOrCreate("name", configure => configure.WithMinValue(0).Cache(100));
See Also