RoleInstanceDiagnosticManager.GetActiveTransfers Method ()
Returns the set of active transfers, with associated transfer information.
Assembly: Microsoft.WindowsAzure.Diagnostics (in Microsoft.WindowsAzure.Diagnostics.dll)
Return Value
Type: System.Collections.Generic.IDictionary<DataBufferName, OnDemandTransferInfo>Type: System.Collections.Generic.IDictionary
An IDictionary of data buffers and their associated on-demand transfer information.
The GetActiveTransfers method is used to get information about a queued or in-progress transfer.
The return value contains a key-value pair in the format of <DataBufferName, OnDemandTransferInfo>.
Example
The following code snippet creates a RoleInstanceDiagnosticManager and returns the active on-demand transfers.
// Get the diagnostic monitor for the specified role instance.
RoleInstanceDiagnosticManager roleInstanceDiagnosticManager =
new RoleInstanceDiagnosticManager(myStorageAccount,
"28281fc7754b44faa9ccf4911983edf1",
"MyWebRole",
"deployment(1).MyAzureProject.WebRole1.0");
// A dictionary to hold the returned dictionary from GetActiveTransfers().
Dictionary<DataBufferName, OnDemandTransferInfo> activeTransfers;
activeTransfers = roleInstanceDiagnosticManager.GetActiveTransfers() as Dictionary<DataBufferName, OnDemandTransferInfo>;
Warning |
|---|
This API is not supported in Azure SDK versions 2.5 and higher. Instead, use the diagnostics.wadcfg XML configuration file. For more information, see Collect Logging Data by Using Azure Diagnostics. |
Show:
