/// <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); } }
/// <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); } }
/// <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()); }
/// <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()); }