C# Class NServiceBus.HeaderOptionExtensions

Extensions to the options to provide ways to set message headers.
Show file Open project: Particular/NServiceBus

Public Methods

Method Description
GetHeaders ( this options ) : string>.IReadOnlyDictionary

Returns all headers set by SetHeader on the outgoing message.

SetHeader ( this options, string key, string value ) : void

Allows headers to be set for the outgoing message.

Method Details

GetHeaders() public static method

Returns all headers set by SetHeader on the outgoing message.
public static GetHeaders ( this options ) : string>.IReadOnlyDictionary
options this
return string>.IReadOnlyDictionary

SetHeader() public static method

Allows headers to be set for the outgoing message.
public static SetHeader ( this options, string key, string value ) : void
options this The options to extend.
key string The header key.
value string The header value.
return void