Table of Contents

Class DictionaryHeaderProvider

Namespace
MassTransit.Transports
Assembly
MassTransit.Abstractions.dll

A simple in-memory header collection for use with the in memory transport

public class DictionaryHeaderProvider : IHeaderProvider
Inheritance
DictionaryHeaderProvider
Implements
Inherited Members

Constructors

DictionaryHeaderProvider(IDictionary<string, object>?)

public DictionaryHeaderProvider(IDictionary<string, object>? headers = null)

Parameters

headers IDictionary<string, object>

Methods

GetAll()

public IEnumerable<KeyValuePair<string, object>> GetAll()

Returns

IEnumerable<KeyValuePair<string, object>>

TryGetHeader(string, out object?)

public bool TryGetHeader(string key, out object? value)

Parameters

key string
value object

Returns

bool