| | |
| | | using CMS.Plugin.FlowManagement.Abstractions.FlowBusiness; |
| | | using CMS.Plugin.HIAWms.Apis; |
| | | using CMS.Plugin.HIAWms.Application.Contracts.Dtos.WmsContainers; |
| | | using CMS.Plugin.HIAWms.Application.Contracts.Dtos.WmsContainer; |
| | | using CMS.Plugin.HIAWms.Domain.WmsContainers; |
| | | using CMS.Plugin.HIAWms.Jobs; |
| | | using CMS.Project; |
| | |
| | | // await uow.SaveChangesAsync(); |
| | | |
| | | _logger.LogInformation($"ProcessAsync,Count={count}"); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// Executes the external API. |
| | | /// </summary> |
| | | private async Task ExecuteExternalApiAsync() |
| | | { |
| | | try |
| | | { |
| | | await _serviceProvider.GetRequiredService<IHIAWmsExternalApi>().CreateAsync(new WmsContainerCreateDto |
| | | { |
| | | Name = "WmsContainer_Name", |
| | | Code = "WmsContainer_Code", |
| | | }); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | _logger.LogException(e); |
| | | } |
| | | } |
| | | } |
| | | } |