/// <summary>
 /// Gets the first page of activity window instances for a dataset with
 /// the link to the next page.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.Core.IActivityWindowOperations.
 /// </param>
 /// <param name='parameters'>
 /// Required. Activity windows list by dataset parameters.
 /// </param>
 /// <returns>
 /// The List activity windows operation response.
 /// </returns>
 public static ActivityWindowListResponse List(this IActivityWindowOperations operations, ActivityWindowsByDatasetListParameters parameters)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IActivityWindowOperations)s).ListAsync(parameters);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Beispiel #2
0
 /// <summary>
 /// Gets the next page of activity window instances with the link to
 /// the next page.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.Core.IActivityWindowOperations.
 /// </param>
 /// <param name='nextLink'>
 /// Required. The URL to the next page of activity windows.
 /// </param>
 /// <param name='parameters'>
 /// Required. Filter parameters for activity windows list.
 /// </param>
 /// <returns>
 /// The List activity windows operation response.
 /// </returns>
 public static ActivityWindowListResponse ListNextByPipelineActivity(this IActivityWindowOperations operations, string nextLink, ActivityWindowsByActivityListParameters parameters)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IActivityWindowOperations)s).ListNextByPipelineActivityAsync(nextLink, parameters);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Initializes a new instance of the DataFactoryManagementClient class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 public DataFactoryManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._activityTypes   = new ActivityTypeOperations(this);
     this._activityWindows = new ActivityWindowOperations(this);
     this._computeTypes    = new ComputeTypeOperations(this);
     this._dataFactories   = new DataFactoryOperations(this);
     this._datasets        = new DatasetOperations(this);
     this._dataSlices      = new DataSliceOperations(this);
     this._dataSliceRuns   = new DataSliceRunOperations(this);
     this._gateways        = new GatewayOperations(this);
     this._hubs            = new HubOperations(this);
     this._linkedServices  = new LinkedServiceOperations(this);
     this._oAuth           = new OAuthOperations(this);
     this._pipelines       = new PipelineOperations(this);
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(60);
 }
 /// <summary>
 /// Gets the first page of activity window instances for a data factory
 /// with the link to the next page.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.Core.IActivityWindowOperations.
 /// </param>
 /// <param name='parameters'>
 /// Required. Activity windows list optional filter parameters.
 /// </param>
 /// <returns>
 /// The List activity windows operation response.
 /// </returns>
 public static Task <ActivityWindowListResponse> ListAsync(this IActivityWindowOperations operations, ActivityWindowsByDataFactoryListParameters parameters)
 {
     return(operations.ListAsync(parameters, CancellationToken.None));
 }
 /// <summary>
 /// Gets the next page of activity window instances with the link to
 /// the next page.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.Core.IActivityWindowOperations.
 /// </param>
 /// <param name='nextLink'>
 /// Required. The URL to the next page of activity windows.
 /// </param>
 /// <param name='parameters'>
 /// Required. Filter parameters for activity windows list.
 /// </param>
 /// <returns>
 /// The List activity windows operation response.
 /// </returns>
 public static Task <ActivityWindowListResponse> ListNextAsync(this IActivityWindowOperations operations, string nextLink, ActivityWindowsByActivityListParameters parameters)
 {
     return(operations.ListNextAsync(nextLink, parameters, CancellationToken.None));
 }