- Namespace
- MassTransit.Transports
- Assembly
- MassTransit.Abstractions.dll
public static class TransportSetHeaderAdapterExtensions
- Inheritance
-
TransportSetHeaderAdapterExtensions
- Inherited Members
-
Methods
public static void Set(this IDictionary<string, object> dictionary, params HeaderValue[] headerValues)
Parameters
dictionary
IDictionary<string, object>
headerValues
HeaderValue[]
public static void Set(this IDictionary<string, object> dictionary, IEnumerable<HeaderValue> headerValues)
Parameters
dictionary
IDictionary<string, object>
headerValues
IEnumerable<HeaderValue>
public static void SetExceptionHeaders(this IDictionary<string, object> dictionary, ExceptionReceiveContext exceptionContext)
Parameters
dictionary
IDictionary<string, object>
exceptionContext
ExceptionReceiveContext
public static void SetHostHeaders(this IDictionary<string, object> dictionary)
Parameters
dictionary
IDictionary<string, object>
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
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
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
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
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
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
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
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
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
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
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
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