Class DeadlineFeature
Default implementation of IDeadlineFeature.
public sealed class DeadlineFeature : IDeadlineFeature
- Inheritance
-
DeadlineFeature
- Implements
- Inherited Members
Constructors
DeadlineFeature(DateTime)
Constructs a deadline feature.
public DeadlineFeature(DateTime deadline)
Parameters
deadline
DateTimeThe deadline value.
Properties
Value
Gets the value of deadline.
public DateTime Value { get; }
Property Value
Methods
FromTimeout(TimeSpan)
Creates a deadline from a timeout.
public static DeadlineFeature FromTimeout(TimeSpan timeout)
Parameters
timeout
TimeSpanThe timeout.
Returns
- DeadlineFeature
A new deadline equal to now plus the timeout.