Couchbase .NET SDK | 3.7.0
Search Results for

    Show / Hide Table of Contents

    Struct Lifespan

    Represents the lifetime of an operation from creation to timeout.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Couchbase.Core
    Assembly: Couchbase.NetClient.dll
    Syntax
    public struct Lifespan

    Properties

    | Edit this page View Source

    CreationTime

    Gets or sets the initial creation time of the operation.

    Declaration
    public DateTime CreationTime { readonly get; set; }
    Property Value
    Type Description
    DateTime

    The creation time.

    | Edit this page View Source

    Duration

    Gets or sets the duration of operations lifespan; the interval between creation and timeout.

    Declaration
    public uint Duration { readonly get; set; }
    Property Value
    Type Description
    uint

    The duration.

    Methods

    | Edit this page View Source

    TimedOut()

    Checks if the operation has exceeded it's duration; if it has it is flagged as timedout.

    Declaration
    public bool TimedOut()
    Returns
    Type Description
    bool

    True if timed out

    • Edit this page
    • View Source
    In this article
    Back to top © 2025 Couchbase, Inc.