Struct RequestTimeout
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
A timeout, which can be a default (none) or a valid TimeSpan > 0, includes factory methods to make it "cute"
public struct RequestTimeout
- Inherited Members
Properties
Default
public static RequestTimeout Default { get; }
Property Value
HasValue
public bool HasValue { get; }
Property Value
None
public static RequestTimeout None { get; }
Property Value
Value
public TimeSpan Value { get; }
Property Value
Exceptions
Methods
After(int?, int?, int?, int?, int?)
Create a timeout using optional arguments to build it up
public static RequestTimeout After(int? d = null, int? h = null, int? m = null, int? s = null, int? ms = null)
Parameters
Returns
- RequestTimeout
The timeout value
Exceptions
Or(RequestTimeout)
If this timeout has a value, return it, otherwise, return the other timeout
public RequestTimeout Or(RequestTimeout other)
Parameters
other
RequestTimeout
Returns
Operators
implicit operator RequestTimeout(int)
public static implicit operator RequestTimeout(int milliseconds)
Parameters
milliseconds
int
Returns
implicit operator RequestTimeout(TimeSpan)
public static implicit operator RequestTimeout(TimeSpan timeout)
Parameters
timeout
TimeSpan