Search Results for

    Show / Hide Table of Contents

    Class Deadline

    This class represents the latest date or time by which an operation should be completed.

    Inheritance
    object
    Deadline
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Remote
    Assembly: Akka.Remote.dll
    Syntax
    public class Deadline

    Constructors

    | Edit this page View Source

    Deadline(DateTime)

    Initializes a new instance of the Deadline class.

    Declaration
    public Deadline(DateTime when)
    Parameters
    Type Name Description
    DateTime when

    The DateTime that the deadline is due.

    Properties

    | Edit this page View Source

    HasTimeLeft

    Determines whether there is still time left until the deadline.

    Declaration
    public bool HasTimeLeft { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    IsOverdue

    Determines whether the deadline has past.

    Declaration
    public bool IsOverdue { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Now

    A deadline that is due UtcNow

    Declaration
    public static Deadline Now { get; }
    Property Value
    Type Description
    Deadline
    | Edit this page View Source

    TimeLeft

    The amount of time left until the deadline is reached.

    note

    Warning: creates a new TimeSpan instance each time it's used

    Declaration
    public TimeSpan TimeLeft { get; }
    Property Value
    Type Description
    TimeSpan
    | Edit this page View Source

    When

    The DateTime that the deadline is due.

    Declaration
    public DateTime When { get; }
    Property Value
    Type Description
    DateTime

    Methods

    | Edit this page View Source

    Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)
    | Edit this page View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()

    Operators

    | Edit this page View Source

    operator +(Deadline, TimeSpan?)

    Adds a given Nullable<T> to the due time of this Deadline

    Declaration
    public static Deadline operator +(Deadline deadline, TimeSpan? duration)
    Parameters
    Type Name Description
    Deadline deadline

    The deadline whose time is being extended

    TimeSpan? duration

    The amount of time being added to the deadline

    Returns
    Type Description
    Deadline

    A new deadline with the specified duration added to the due time

    | Edit this page View Source

    operator +(Deadline, TimeSpan)

    Adds a given TimeSpan to the due time of this Deadline

    Declaration
    public static Deadline operator +(Deadline deadline, TimeSpan duration)
    Parameters
    Type Name Description
    Deadline deadline

    The deadline whose time is being extended

    TimeSpan duration

    The amount of time being added to the deadline

    Returns
    Type Description
    Deadline

    A new deadline with the specified duration added to the due time

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET