Table of Contents

Class Context

Namespace
CarrotMQ.Core
Assembly
CarrotMQ.Core.dll

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 Context

All values are copied from this context except Ttl

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

initialUserName string
initialServiceName string
customHeader IDictionary<string, string>

Properties

CustomHeader

Additional header data, e.g. tracing ids.

public IDictionary<string, string> CustomHeader { get; }

Property Value

IDictionary<string, string>

InitialServiceName

Gets the name of the service or application sending the initial message.

public string? InitialServiceName { get; }

Property Value

string

InitialUserName

Gets the name of the user sending the initial message.

public string? InitialUserName { get; }

Property Value

string