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
configureAction<T>
Returns
- T
 
Type Parameters
TThe 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
optionsTconfigureAction<T>
Returns
- T
 
Type Parameters
TThe 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
optionsT
Returns
Type Parameters
TThe option type
ValidateOptions()
Enumerate the options which are assignable to the specified type
protected IEnumerable<ValidationResult> ValidateOptions()