Class DynamicCorrelation
Provides a factory based way to create and wrap an ICorrelation implementation.
Inheritance
System.Object
DynamicCorrelation
Namespace: Cuemon.Messaging
Assembly: Cuemon.Core.dll
Syntax
public static class DynamicCorrelation
Methods
| Improve this DocCreate(Func<String>)
Creates a dynamic implementation of ICorrelation.
Declaration
public static ICorrelation Create(Func<string> correlationIdProvider)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.String> | correlationIdProvider | The function delegate which provides a unique identifier of a request or message. |
Returns
Type | Description |
---|---|
ICorrelation | A dynamic ICorrelation implementation. |
Create(String)
Creates a dynamic implementation of ICorrelation.
Declaration
public static ICorrelation Create(string correlationId)
Parameters
Type | Name | Description |
---|---|---|
System.String | correlationId | The unique identifier of a request or message. |
Returns
Type | Description |
---|---|
ICorrelation | A dynamic ICorrelation implementation. |