Table of Contents

Class OptionsSet

Namespace
MassTransit.Configuration
Assembly
MassTransit.Abstractions.dll
public class OptionsSet : IOptionsSet
Inheritance
OptionsSet
Implements
Inherited Members

Constructors

OptionsSet()

public OptionsSet()

Methods

Options<T>(Action<T>?)

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

public 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>?)

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

public 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

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

Returns

IEnumerable<T>

Type Parameters

T

TryGetOptions<T>(out T)

Return the options, if present

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

Parameters

options T

Returns

bool

Type Parameters

T

The option type

ValidateOptions()

Enumerate the options which are assignable to the specified type

protected IEnumerable<ValidationResult> ValidateOptions()

Returns

IEnumerable<ValidationResult>