/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='model'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ResQYttriumWebApiModelsResultModel> ChangeDestinationAsync(this IAccidentTowService operations, ResQYttriumWebApiModelsChangeLocationModel model, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ChangeDestinationWithHttpMessagesAsync(model, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='model'> /// </param> public static ResQYttriumWebApiModelsResultModel ChangeDestination(this IAccidentTowService operations, ResQYttriumWebApiModelsChangeLocationModel model) { return(Task.Factory.StartNew(s => ((IAccidentTowService)s).ChangeDestinationAsync(model), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }