Struct Lifespan
Represents the lifetime of an operation from creation to timeout.
Inherited Members
Namespace: Couchbase.Core
Assembly: Couchbase.NetClient.dll
Syntax
public struct Lifespan
Properties
| Edit this page View SourceCreationTime
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. |
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 SourceTimedOut()
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 |