OperationContext OperationContext OperationContext Class

Definition

Represents the context for a request operation against the storage service, and provides additional runtime information about its execution.

public sealed class OperationContext
type OperationContext = class
Public NotInheritable Class OperationContext
Inheritance
OperationContextOperationContextOperationContext

Constructors

OperationContext() OperationContext() OperationContext()

Initializes a new instance of the OperationContext class.

Properties

ClientRequestID ClientRequestID ClientRequestID

Gets or sets the client request ID.

CustomUserAgent CustomUserAgent CustomUserAgent
DefaultLogLevel DefaultLogLevel DefaultLogLevel

Gets or sets the default logging level to be used for subsequently created instances of the OperationContext class.

EndTime EndTime EndTime

Gets or sets the end time of the operation.

LastResult LastResult LastResult

Gets the last request result encountered for the operation.

LogLevel LogLevel LogLevel

Gets or sets the logging level to be used for an instance of the OperationContext class.

RequestResults RequestResults RequestResults

Gets or sets the set of request results that the current operation has created.

StartTime StartTime StartTime

Gets or sets the start time of the operation.

UserHeaders UserHeaders UserHeaders

Gets or sets additional headers on the request, for example, for proxy or logging information.

Events

GlobalRequestCompleted GlobalRequestCompleted GlobalRequestCompleted

Occurs after a response has been fully received and processed.

GlobalResponseReceived GlobalResponseReceived GlobalResponseReceived

Occurs when a response is received from the server, before any processing or downloading.

GlobalRetrying GlobalRetrying GlobalRetrying

Occurs before a request is retried

GlobalSendingRequest GlobalSendingRequest GlobalSendingRequest

Occurs immediately before a request is signed.

RequestCompleted RequestCompleted RequestCompleted

Occurs after a response has been fully received and processed.

ResponseReceived ResponseReceived ResponseReceived

Occurs when a response is received from the service, before any processing or downloading.

Retrying Retrying Retrying

Occurs before a request is retried

SendingRequest SendingRequest SendingRequest

Occurs immediately before a request is signed.

Extension Methods

IsDefined(Object) IsDefined(Object) IsDefined(Object)

Determines if a certain property is defined or not.

IsNull(Object) IsNull(Object) IsNull(Object)

Determines if a certain property is null or not.

IsPrimitive(Object) IsPrimitive(Object) IsPrimitive(Object)

Determines if a certain property is of premitive JSON type.

Applies to