/// <summary> /// Puts the specified model. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// The identifier. /// </param> /// <param name='model'> /// The model. /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static HttpOperationResponse UpdateBoardWithHttpMessages(this ISoftheonSwitchboard operations, int id, BoardPutModel model = default(BoardPutModel), Dictionary <string, List <string> > customHeaders = null) { return(operations.UpdateBoardWithHttpMessagesAsync(id, model, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }
/// <summary> /// Puts the specified model. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// The identifier. /// </param> /// <param name='model'> /// The model. /// </param> public static void UpdateBoard(this ISoftheonSwitchboard operations, int id, BoardPutModel model = default(BoardPutModel)) { operations.UpdateBoardAsync(id, model).GetAwaiter().GetResult(); }
/// <summary> /// Puts the specified model. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// The identifier. /// </param> /// <param name='model'> /// The model. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task UpdateBoardAsync(this ISoftheonSwitchboard operations, int id, BoardPutModel model = default(BoardPutModel), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.UpdateBoardWithHttpMessagesAsync(id, model, null, cancellationToken).ConfigureAwait(false)).Dispose(); }