CorrelationId Constructor
Definition
- Namespace
- Codebelt.SharedKernel
- Assemblies
- Codebelt.SharedKernel.dll
CorrelationId(Guid)
Initializes a new instance of the CorrelationId class.
public CorrelationId(Guid value)
Parameters
valueGuidThe Guid value to assign the role of CorrelationId.
CorrelationId(string)
Initializes a new instance of the CorrelationId class.
public CorrelationId(string value)
Parameters
valuestringThe string value to assign the role of CorrelationId.
Exceptions
- ArgumentNullException
valuecannot be null.- ArgumentException
valuecannot be empty or consist only of white-space characters.- ArgumentOutOfRangeException
valuecontained one or more white-space characters -or-valuewas less than 32 characters -or-valuewas greater than 128 characters -or-valueconsist only of same repeated character.