/// <summary> /// Update Simple Endpoint /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='subscriptionId'> /// </param> /// <param name='model'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SimpleEndpointModel> UpdateSimpleEndpointAsync(this IInbound operations, string subscriptionId, SimpleEndpointModel model, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateSimpleEndpointWithHttpMessagesAsync(subscriptionId, model, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Update Simple Endpoint /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='subscriptionId'> /// </param> /// <param name='model'> /// </param> public static SimpleEndpointModel UpdateSimpleEndpoint(this IInbound operations, string subscriptionId, SimpleEndpointModel model) { return(operations.UpdateSimpleEndpointAsync(subscriptionId, model).GetAwaiter().GetResult()); }