Exemplo n.º 1
0
 /// <summary>
 /// Update Service Configuration.
 /// </summary>
 /// <remarks>
 /// Update the Personalizer service configuration.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='config'>
 /// The personalizer service configuration.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ServiceConfiguration> UpdateAsync(this IServiceConfigurationOperations operations, ServiceConfiguration config, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdateWithHttpMessagesAsync(config, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Update Service Configuration.
 /// </summary>
 /// <remarks>
 /// Update the Personalizer service configuration.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='config'>
 /// The personalizer service configuration.
 /// </param>
 /// <param name='customHeaders'>
 /// Headers that will be added to request.
 /// </param>
 public static HttpOperationResponse <ServiceConfiguration> UpdateWithHttpMessages(this IServiceConfigurationOperations operations, ServiceConfiguration config, Dictionary <string, List <string> > customHeaders = null)
 {
     return(operations.UpdateWithHttpMessagesAsync(config, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult());
 }