OperationContext Class (Microsoft.WindowsAzure.Storage)
From Microsoft.WindowsAzure.Storage.Queue
Represents the context for a request operation against the storage service, and provides additional runtime information about its execution.
Namespace:
Microsoft.WindowsAzure.Storage
Assembly:
Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
Constructors
Name Description 
OperationContext()()()()
Initializes a new instance of the OperationContext class.
Properties
Name Description 
ClientRequestIDClientRequestIDClientRequestIDClientRequestID
Gets or sets the client request ID.


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

EndTimeEndTimeEndTimeEndTime
Gets or sets the end time of the operation.

LastResultLastResultLastResultLastResult
Gets the last request result encountered for the operation.

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

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

StartTimeStartTimeStartTimeStartTime
Gets or sets the start time of the operation.

UserHeadersUserHeadersUserHeadersUserHeaders
Gets or sets additional headers on the request, for example, for proxy or logging information.
Methods
Name Description 
Equals(Object)(Object^)(Object)(Object) (Inherited from Object.)

GetHashCode()()()() (Inherited from Object.)

GetType()()()() (Inherited from Object.)

ToString()()()() (Inherited from Object.)
Events
Name Description 

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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Return to top
Represents the context for a request operation against the storage service, and provides additional runtime information about its execution.
Syntax
Constructors
| Name | Description | |
|---|---|---|
| OperationContext()()()() | Initializes a new instance of the OperationContext class. |
Properties
| Name | Description | |
|---|---|---|
| ClientRequestIDClientRequestIDClientRequestIDClientRequestID | Gets or sets the client request ID. | |
| DefaultLogLevelDefaultLogLevelDefaultLogLevelDefaultLogLevel | Gets or sets the default logging level to be used for subsequently created instances of the OperationContext class. | |
| EndTimeEndTimeEndTimeEndTime | Gets or sets the end time of the operation. | |
| LastResultLastResultLastResultLastResult | Gets the last request result encountered for the operation. | |
| LogLevelLogLevelLogLevelLogLevel | Gets or sets the logging level to be used for an instance of the OperationContext class. | |
| RequestResultsRequestResultsRequestResultsRequestResults | Gets or sets the set of request results that the current operation has created. | |
| StartTimeStartTimeStartTimeStartTime | Gets or sets the start time of the operation. | |
| UserHeadersUserHeadersUserHeadersUserHeaders | Gets or sets additional headers on the request, for example, for proxy or logging information. |
Methods
| Name | Description | |
|---|---|---|
| Equals(Object)(Object^)(Object)(Object) | (Inherited from Object.) | |
| GetHashCode()()()() | (Inherited from Object.) | |
| GetType()()()() | (Inherited from Object.) | |
| ToString()()()() | (Inherited from Object.) |
Events
| Name | Description | |
|---|---|---|
| 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. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.