Class Context
Contains additional infos when sending/publishing a message with ICarrotClient.
public class Context
- Inheritance
-
Context
- Derived
- Inherited Members
Constructors
Context(Context)
Initializes a new instance of the Context class.
public Context(Context context)
Parameters
Context(string?, string?, IDictionary<string, string>?)
Initializes a new instance of the Context class.
public Context(string? initialUserName = null, string? initialServiceName = null, IDictionary<string, string>? customHeader = null)
Parameters
initialUserNamestringinitialServiceNamestringcustomHeaderIDictionary<string, string>
Properties
CustomHeader
Additional header data, e.g. tracing ids.
public IDictionary<string, string> CustomHeader { get; }
Property Value
InitialServiceName
Gets the name of the service or application sending the initial message.
public string? InitialServiceName { get; }
Property Value
InitialUserName
Gets the name of the user sending the initial message.
public string? InitialUserName { get; }