Example #1
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='customName'>
 /// </param>
 /// <param name='body'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <GetSessionResponse> PostAsync(this IUpdateSessionOperations operations, string customName = default(string), UpdateSession body = default(UpdateSession), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.PostWithHttpMessagesAsync(customName, body, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Example #2
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='customName'>
 /// </param>
 /// <param name='format'>
 /// Specifies response output format
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <GetSessionResponse> CreateAsync(this IUpdateSessionOperations operations, string customName, string format = "json", CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateWithHttpMessagesAsync(customName, format, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Example #3
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='customName'>
 /// </param>
 /// <param name='body'>
 /// </param>
 public static GetSessionResponse Post(this IUpdateSessionOperations operations, string customName = default(string), UpdateSession body = default(UpdateSession))
 {
     return(operations.PostAsync(customName, body).GetAwaiter().GetResult());
 }
Example #4
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='customName'>
 /// </param>
 /// <param name='format'>
 /// Specifies response output format
 /// </param>
 public static GetSessionResponse Post(this IUpdateSessionOperations operations, string customName, string format = "json")
 {
     return(operations.PostAsync(customName, format).GetAwaiter().GetResult());
 }