Class ShutdownOptions
- Namespace
- AnyProtocol.Abstraction
- Assembly
- AnyProtocol.Abstraction.dll
Configures bounded AnyProtocol shutdown draining.
public sealed record ShutdownOptions : IEquatable<ShutdownOptions>
- Inheritance
-
ShutdownOptions
- Implements
- Inherited Members
Constructors
ShutdownOptions()
public ShutdownOptions()
Fields
DefaultDrainTimeout
The default time allowed for admitted handlers to complete.
public static readonly TimeSpan DefaultDrainTimeout
Field Value
DefaultForcedCancellationTimeout
The default time allowed for forced cancellation cleanup.
public static readonly TimeSpan DefaultForcedCancellationTimeout
Field Value
Properties
DrainTimeout
Gets or initializes the time allowed for admitted work to drain.
public TimeSpan DrainTimeout { get; init; }
Property Value
ForcedCancellationTimeout
Gets or initializes the time allowed for forced-cancellation cleanup.
public TimeSpan ForcedCancellationTimeout { get; init; }
Property Value
Methods
Equals(ShutdownOptions?)
public bool Equals(ShutdownOptions? other)
Parameters
otherShutdownOptions
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Validate()
Validates the shutdown policy.
public void Validate()
Operators
operator ==(ShutdownOptions?, ShutdownOptions?)
public static bool operator ==(ShutdownOptions? left, ShutdownOptions? right)
Parameters
leftShutdownOptionsrightShutdownOptions
Returns
operator !=(ShutdownOptions?, ShutdownOptions?)
public static bool operator !=(ShutdownOptions? left, ShutdownOptions? right)
Parameters
leftShutdownOptionsrightShutdownOptions