Пример #1
0
 /// <summary>
 /// Updates a Gateway
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// The id of the Gateway
 /// </param>
 /// <param name='gateways'>
 /// The changes to apply
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task <object> PatchAsyncByidgatewaysAsync(this IGateways operations, int id, EditGatewayDto gateways, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.PatchAsyncByidgatewaysWithHttpMessagesAsync(id, gateways, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #2
0
 /// <summary>
 /// Updates a Gateway
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// The id of the Gateway
 /// </param>
 /// <param name='gateways'>
 /// The changes to apply
 /// </param>
 public static object PatchAsyncByidgateways(this IGateways operations, int id, EditGatewayDto gateways)
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IGateways)s).PatchAsyncByidgatewaysAsync(id, gateways), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }