示例#1
0
 /// <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);
     }
 }
示例#2
0
 /// <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());
 }
示例#3
0
 /// <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);
 }