Table of Contents

Interface IOptionsSet

Namespace
MassTransit.Configuration
Assembly
MassTransit.Abstractions.dll
public interface IOptionsSet

Methods

Options<T>(Action<T>?)

Configure the options, adding the option type if it is not present

T Options<T>(Action<T>? configure = null) where T : IOptions, new()

Parameters

configure Action<T>

Returns

T

Type Parameters

T

The option type

Options<T>(T, Action<T>?)

Specify the options, will fault if it already exists

T Options<T>(T options, Action<T>? configure = null) where T : IOptions

Parameters

options T
configure Action<T>

Returns

T

Type Parameters

T

The option type

SelectOptions<T>()

Enumerate the options which are assignable to the specified type

IEnumerable<T> SelectOptions<T>() where T : class

Returns

IEnumerable<T>

Type Parameters

T

TryGetOptions<T>(out T)

Return the options, if present

bool TryGetOptions<T>(out T options) where T : IOptions

Parameters

options T

Returns

bool

Type Parameters

T

The option type