Table of Contents

CorrelationId Constructor

Definition

Namespace
Codebelt.SharedKernel
Assemblies
Codebelt.SharedKernel.dll
Source
src/Codebelt.SharedKernel/CorrelationId.cs

CorrelationId(Guid)

Initializes a new instance of the CorrelationId class.

public CorrelationId(Guid value)

Parameters

value Guid

The Guid value to assign the role of CorrelationId.

CorrelationId(string)

Initializes a new instance of the CorrelationId class.

public CorrelationId(string value)

Parameters

value string

The string value to assign the role of CorrelationId.

Exceptions

ArgumentNullException

value cannot be null.

ArgumentException

value cannot be empty or consist only of white-space characters.

ArgumentOutOfRangeException

value contained one or more white-space characters -or- value was less than 32 characters -or- value was greater than 128 characters -or- value consist only of same repeated character.