Export (0) Print
Expand All

RoleInstanceDiagnosticManager.GetActiveTransfers Method

Updated: November 15, 2013

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

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


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

Community Additions

ADD
Show:
© 2014 Microsoft