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
configureAction<T>
Returns
- T
 
Type Parameters
TThe 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
optionsTconfigureAction<T>
Returns
- T
 
Type Parameters
TThe 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
optionsT
Returns
Type Parameters
TThe option type