/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='customerId'> /// </param> /// <param name='request'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<object> SetAsync(this IDepositLimit operations, string customerId, SetDepositLimit request, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.SetWithHttpMessagesAsync(customerId, request, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='customerId'> /// </param> /// <param name='request'> /// </param> public static object Set(this IDepositLimit operations, string customerId, SetDepositLimit request) { return Task.Factory.StartNew(s => ((IDepositLimit)s).SetAsync(customerId, request), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }