Class MassTransitHostOptions
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
If present in the container, these options will be used by the MassTransit hosted service.
public class MassTransitHostOptions
- Inheritance
-
MassTransitHostOptions
- Inherited Members
Constructors
MassTransitHostOptions()
public MassTransitHostOptions()
Properties
StartTimeout
If specified, the timeout will be used with StartAsync to cancel if the timeout is reached
public TimeSpan? StartTimeout { get; set; }
Property Value
StopTimeout
If specified, the timeout will be used with StopAsync to cancel if the timeout is reached. The bus is still stopped, only the wait is canceled.
public TimeSpan? StopTimeout { get; set; }
Property Value
WaitUntilStarted
If True, the hosted service will not return from StartAsync until the bus has started.
public bool WaitUntilStarted { get; set; }