/// <summary>
 /// The Get Operation Status operation returns the status of the
 /// specified operation. After calling an asynchronous operation, you
 /// can call Get Operation Status to determine whether the operation
 /// has succeeded, failed, or is still in progress.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IDataPipelineManagementClient.
 /// </param>
 /// <param name='operationStatusLink'>
 /// Required. Location value returned by the Begin operation.
 /// </param>
 /// <returns>
 /// A standard service response for long running operations.
 /// </returns>
 public static LongRunningOperationResponse GetLongRunningOperationStatus(this IDataPipelineManagementClient operations, string operationStatusLink)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IDataPipelineManagementClient)s).GetLongRunningOperationStatusAsync(operationStatusLink);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Exemplo n.º 2
0
 public DataFactoryClient(AzureContext context)
 {
     DataPipelineManagementClient = AzureSession.ClientFactory.CreateClient <DataPipelineManagementClient>(
         context, AzureEnvironment.Endpoint.ResourceManager);
 }
Exemplo n.º 3
0
 public DataFactoryClient(AzureProfile profile)
 {
     DataPipelineManagementClient = AzureSession.ClientFactory.CreateClient <DataPipelineManagementClient>(
         profile, AzureEnvironment.Endpoint.ResourceManager);
 }
Exemplo n.º 4
0
 public DataFactoryClient(AzureContext context)
 {
     DataPipelineManagementClient = AzureSession.ClientFactory.CreateClient<DataPipelineManagementClient>(
         context, AzureEnvironment.Endpoint.ResourceManager);
 }
 public DataFactoryClient(AzureProfile profile)
 {
     DataPipelineManagementClient = AzureSession.ClientFactory.CreateClient<DataPipelineManagementClient>(
         profile, AzureEnvironment.Endpoint.ResourceManager);
 }
 /// <summary>
 /// The Get Operation Status operation returns the status of the
 /// specified operation. After calling an asynchronous operation, you
 /// can call Get Operation Status to determine whether the operation
 /// has succeeded, failed, or is still in progress.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IDataPipelineManagementClient.
 /// </param>
 /// <param name='operationStatusLink'>
 /// Required. Location value returned by the Begin operation.
 /// </param>
 /// <returns>
 /// A standard service response for long running operations.
 /// </returns>
 public static Task <LongRunningOperationResponse> GetLongRunningOperationStatusAsync(this IDataPipelineManagementClient operations, string operationStatusLink)
 {
     return(operations.GetLongRunningOperationStatusAsync(operationStatusLink, CancellationToken.None));
 }