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