/// <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(); }
/// <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, ActivityWindowsByDatasetListParameters parameters) { return operations.ListNextAsync(nextLink, parameters, CancellationToken.None); }