/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <TblRoombook> GettblAsync(this IRoombook operations, int id, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GettblWithHttpMessagesAsync(id, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> public static TblRoombook Gettbl(this IRoombook operations, int id) { return(Task.Factory.StartNew(s => ((IRoombook)s).GettblAsync(id), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='tblRoombook'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PuttblAsync(this IRoombook operations, int id, TblRoombook tblRoombook, CancellationToken cancellationToken = default(CancellationToken)) { await operations.PuttblWithHttpMessagesAsync(id, tblRoombook, null, cancellationToken).ConfigureAwait(false); }