Table of Contents

Class TransportSetHeaderAdapterExtensions

Namespace
MassTransit.Transports
Assembly
MassTransit.Abstractions.dll
public static class TransportSetHeaderAdapterExtensions
Inheritance
TransportSetHeaderAdapterExtensions
Inherited Members

Methods

Set(IDictionary<string, object>, params HeaderValue[])

public static void Set(this IDictionary<string, object> dictionary, params HeaderValue[] headerValues)

Parameters

dictionary IDictionary<string, object>
headerValues HeaderValue[]

Set(IDictionary<string, object>, IEnumerable<HeaderValue>)

public static void Set(this IDictionary<string, object> dictionary, IEnumerable<HeaderValue> headerValues)

Parameters

dictionary IDictionary<string, object>
headerValues IEnumerable<HeaderValue>

SetExceptionHeaders(IDictionary<string, object>, ExceptionReceiveContext)

public static void SetExceptionHeaders(this IDictionary<string, object> dictionary, ExceptionReceiveContext exceptionContext)

Parameters

dictionary IDictionary<string, object>
exceptionContext ExceptionReceiveContext

SetHostHeaders(IDictionary<string, object>)

public static void SetHostHeaders(this IDictionary<string, object> dictionary)

Parameters

dictionary IDictionary<string, object>

Set<TValueType>(ITransportSetHeaderAdapter<TValueType>, IDictionary<string, TValueType>, IEnumerable<HeaderValue>)

public static void Set<TValueType>(this ITransportSetHeaderAdapter<TValueType> adapter, IDictionary<string, TValueType> dictionary, IEnumerable<HeaderValue> headerValues)

Parameters

adapter ITransportSetHeaderAdapter<TValueType>
dictionary IDictionary<string, TValueType>
headerValues IEnumerable<HeaderValue>

Type Parameters

TValueType

Set<TValueType>(ITransportSetHeaderAdapter<TValueType>, IDictionary<string, TValueType>, string, DateTime?)

public static void Set<TValueType>(this ITransportSetHeaderAdapter<TValueType> adapter, IDictionary<string, TValueType> dictionary, string key, DateTime? value)

Parameters

adapter ITransportSetHeaderAdapter<TValueType>
dictionary IDictionary<string, TValueType>
key string
value DateTime?

Type Parameters

TValueType

Set<TValueType>(ITransportSetHeaderAdapter<TValueType>, IDictionary<string, TValueType>, string, DateTime?, Func<DateTime, string>)

public static void Set<TValueType>(this ITransportSetHeaderAdapter<TValueType> adapter, IDictionary<string, TValueType> dictionary, string key, DateTime? value, Func<DateTime, string> formatter)

Parameters

adapter ITransportSetHeaderAdapter<TValueType>
dictionary IDictionary<string, TValueType>
key string
value DateTime?
formatter Func<DateTime, string>

Type Parameters

TValueType

Set<TValueType>(ITransportSetHeaderAdapter<TValueType>, IDictionary<string, TValueType>, string, Guid?)

public static void Set<TValueType>(this ITransportSetHeaderAdapter<TValueType> adapter, IDictionary<string, TValueType> dictionary, string key, Guid? value)

Parameters

adapter ITransportSetHeaderAdapter<TValueType>
dictionary IDictionary<string, TValueType>
key string
value Guid?

Type Parameters

TValueType

Set<TValueType>(ITransportSetHeaderAdapter<TValueType>, IDictionary<string, TValueType>, string, Guid?, Func<Guid, string>)

public static void Set<TValueType>(this ITransportSetHeaderAdapter<TValueType> adapter, IDictionary<string, TValueType> dictionary, string key, Guid? value, Func<Guid, string> formatter)

Parameters

adapter ITransportSetHeaderAdapter<TValueType>
dictionary IDictionary<string, TValueType>
key string
value Guid?
formatter Func<Guid, string>

Type Parameters

TValueType

Set<TValueType>(ITransportSetHeaderAdapter<TValueType>, IDictionary<string, TValueType>, string, int?)

public static void Set<TValueType>(this ITransportSetHeaderAdapter<TValueType> adapter, IDictionary<string, TValueType> dictionary, string key, int? value)

Parameters

adapter ITransportSetHeaderAdapter<TValueType>
dictionary IDictionary<string, TValueType>
key string
value int?

Type Parameters

TValueType

Set<TValueType>(ITransportSetHeaderAdapter<TValueType>, IDictionary<string, TValueType>, string, int?, Func<int, string>)

public static void Set<TValueType>(this ITransportSetHeaderAdapter<TValueType> adapter, IDictionary<string, TValueType> dictionary, string key, int? value, Func<int, string> formatter)

Parameters

adapter ITransportSetHeaderAdapter<TValueType>
dictionary IDictionary<string, TValueType>
key string
value int?
formatter Func<int, string>

Type Parameters

TValueType

Set<TValueType>(ITransportSetHeaderAdapter<TValueType>, IDictionary<string, TValueType>, string, TimeSpan?)

public static void Set<TValueType>(this ITransportSetHeaderAdapter<TValueType> adapter, IDictionary<string, TValueType> dictionary, string key, TimeSpan? value)

Parameters

adapter ITransportSetHeaderAdapter<TValueType>
dictionary IDictionary<string, TValueType>
key string
value TimeSpan?

Type Parameters

TValueType

Set<TValueType>(ITransportSetHeaderAdapter<TValueType>, IDictionary<string, TValueType>, string, TimeSpan?, Func<TimeSpan, string>)

public static void Set<TValueType>(this ITransportSetHeaderAdapter<TValueType> adapter, IDictionary<string, TValueType> dictionary, string key, TimeSpan? value, Func<TimeSpan, string> formatter)

Parameters

adapter ITransportSetHeaderAdapter<TValueType>
dictionary IDictionary<string, TValueType>
key string
value TimeSpan?
formatter Func<TimeSpan, string>

Type Parameters

TValueType

Set<TValueType>(ITransportSetHeaderAdapter<TValueType>, IDictionary<string, TValueType>, string, string?)

public static void Set<TValueType>(this ITransportSetHeaderAdapter<TValueType> adapter, IDictionary<string, TValueType> dictionary, string key, string? value)

Parameters

adapter ITransportSetHeaderAdapter<TValueType>
dictionary IDictionary<string, TValueType>
key string
value string

Type Parameters

TValueType

Set<TValueType>(ITransportSetHeaderAdapter<TValueType>, IDictionary<string, TValueType>, string, Uri?)

public static void Set<TValueType>(this ITransportSetHeaderAdapter<TValueType> adapter, IDictionary<string, TValueType> dictionary, string key, Uri? value)

Parameters

adapter ITransportSetHeaderAdapter<TValueType>
dictionary IDictionary<string, TValueType>
key string
value Uri

Type Parameters

TValueType

TryGetInt(IDictionary<string, string>, string, out int)

public static bool TryGetInt(this IDictionary<string, string> dictionary, string key, out int value)

Parameters

dictionary IDictionary<string, string>
key string
value int

Returns

bool