Share via


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
OperationContext

Constructors

OperationContext()

Initializes a new instance of the OperationContext class.

Properties

ClientRequestID

Gets or sets the client request ID.

CustomUserAgent

Gets or sets a custom UserAgent value to be prepended to the existing library UserAgent.

DefaultLogLevel

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

EndTime

Gets or sets the end time of the operation.

LastResult

Gets the last request result encountered for the operation.

LogLevel

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

RequestResults

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

StartTime

Gets or sets the start time of the operation.

UserHeaders

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

Events

GlobalRequestCompleted

Occurs after a response has been fully received and processed.

GlobalResponseReceived

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

GlobalRetrying

Occurs before a request is retried

GlobalSendingRequest

Occurs immediately before a request is signed.

RequestCompleted

Occurs after a response has been fully received and processed.

ResponseReceived

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

Retrying

Occurs before a request is retried

SendingRequest

Occurs immediately before a request is signed.

Applies to