public async Task <ImportDetail> ImportFromAzure(ImportFromAzureRequest detail) { var response = await Client .Post <ImportDetail>($"{ApiKeys.Endpoint}imports/azure", ApiKeys.ApiToken, null, detail) .ConfigureAwait(false); return(response); }
public async Task <ImportDetail> ImportFromAzure(ImportFromAzureRequest detail, CancellationToken cancellationToken = default(CancellationToken)) { var response = await apiConnection .Post <ImportDetail>("imports/azure", null, detail, HttpMessageTransformer, cancellationToken) .ConfigureAwait(false); return(response); }
public async Task <ImportDetail> ImportFromAzure(ImportFromAzureRequest detail) { try { var result = await ImportRepository.ImportFromAzure(detail); return(result); } catch (Exception ex) { Logger.Error("AccountService.ImportFromAzure failed", this, ex); } return(null); }