Example #1
0
 public async Task <SdrcFlurHttpResponse> CreateAsync(Models.Production.RestExternalOrder value, bool checkMedicine, TimeSpan timeSpan)
 => await CreateAsync(value, checkMedicine, CancellationTokenFromTimeSpan(timeSpan)).ConfigureAwait(false);
Example #2
0
 public async Task <SdrcFlurHttpResponse> CreateAsync(Models.Production.RestExternalOrder value, bool checkMedicine = false, CancellationToken cancellationToken = default(CancellationToken), HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
 => checkMedicine
     ? await UrlClone.WithHeader("CheckMedicines", "True")
 .SdrcPostJsonAsync(value, cancellationToken, completionOption).ConfigureAwait(false)
     : await UrlClone
 .SdrcPostJsonAsync(value, cancellationToken, completionOption).ConfigureAwait(false);