RoleInstanceDiagnosticManager.GetActiveTransfers Method ()


Returns the set of active transfers, with associated transfer information.

Namespace:   Microsoft.WindowsAzure.Diagnostics.Management
Assembly:  Microsoft.WindowsAzure.Diagnostics (in Microsoft.WindowsAzure.Diagnostics.dll)

public IDictionary<DataBufferName, OnDemandTransferInfo> GetActiveTransfers()

Return Value

Type: System.Collections.Generic.IDictionary<DataBufferNameOnDemandTransferInfo>

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>.


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,

// A dictionary to hold the returned dictionary from GetActiveTransfers().
Dictionary<DataBufferName, OnDemandTransferInfo> activeTransfers;

activeTransfers = roleInstanceDiagnosticManager.GetActiveTransfers() as Dictionary<DataBufferName, OnDemandTransferInfo>;


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.

Return to top