C# Class Microsoft.WindowsAzure.Commands.Storage.Common.CmdletOperationContext

显示文件 Open project: Azure/azure-powershell Class Usage Examples

Public Methods

Method Description
GetRunningMilliseconds ( ) : double

Get the running ms from when operationcontext started

GetStorageOperationContext ( Action outputWriter ) : Microsoft.WindowsAzure.Storage.OperationContext

Get Storage Operation Context for rest calls

Init ( ) : void

Init the cmdlet operation context

Private Methods

Method Description
CmdletOperationContext ( ) : Microsoft.WindowsAzure.Storage
GenClientRequestID ( ) : string

Get an unique client request id

Method Details

GetRunningMilliseconds() public static method

Get the running ms from when operationcontext started
public static GetRunningMilliseconds ( ) : double
return double

GetStorageOperationContext() public static method

Get Storage Operation Context for rest calls
public static GetStorageOperationContext ( Action outputWriter ) : Microsoft.WindowsAzure.Storage.OperationContext
outputWriter Action Ouput writer for writing logs for each rest call
return Microsoft.WindowsAzure.Storage.OperationContext

Init() public static method

Init the cmdlet operation context
public static Init ( ) : void
return void