HpsvSequenceBuilderBase.GetOrCreate 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.6.0.9999-localBuild
Syntaxpublic HpsvSequence GetOrCreate(
string name,
Action<ISequenceConfigurer> configure = null
)
Parameters
- name
- Type: System.String
The name of the sequence - configure (Optional)
- Type: System.Action<ISequenceConfigurer>
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:
HpsvSequenceThe sequence
Exceptions
Examples
var sequence = hpsv.SequenceBuilder.GetOrCreate("name", configure => configure.WithMinValue(0).Cache(100));
See Also