/// <summary> /// Create or update a data factory linkedService with raw json content. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataFactories.ILinkedServiceOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The resource group name of the data factory. /// </param> /// <param name='dataFactoryName'> /// Required. The name of the data factory. /// </param> /// <param name='linkedServiceName'> /// Required. The name of the data factory table to be created or /// updated. /// </param> /// <param name='parameters'> /// Required. The parameters required to create or update a data /// factory linkedService. /// </param> /// <returns> /// The create or update data factory linkedService operation response. /// </returns> public static Task<LinkedServiceCreateOrUpdateResponse> CreateOrUpdateWithRawJsonContentAsync(this ILinkedServiceOperations operations, string resourceGroupName, string dataFactoryName, string linkedServiceName, LinkedServiceCreateOrUpdateWithRawJsonContentParameters parameters) { return operations.CreateOrUpdateWithRawJsonContentAsync(resourceGroupName, dataFactoryName, linkedServiceName, parameters, CancellationToken.None); }
/// <summary> /// Create or update a data factory linkedService with raw json content. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataFactories.ILinkedServiceOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The resource group name of the data factory. /// </param> /// <param name='dataFactoryName'> /// Required. The name of the data factory. /// </param> /// <param name='linkedServiceName'> /// Required. The name of the data factory table to be created or /// updated. /// </param> /// <param name='parameters'> /// Required. The parameters required to create or update a data /// factory linkedService. /// </param> /// <returns> /// The create or update data factory linkedService operation response. /// </returns> public static LinkedServiceCreateOrUpdateResponse CreateOrUpdateWithRawJsonContent(this ILinkedServiceOperations operations, string resourceGroupName, string dataFactoryName, string linkedServiceName, LinkedServiceCreateOrUpdateWithRawJsonContentParameters parameters) { return Task.Factory.StartNew((object s) => { return ((ILinkedServiceOperations)s).CreateOrUpdateWithRawJsonContentAsync(resourceGroupName, dataFactoryName, linkedServiceName, parameters); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }