public async Task <IEpcisResponse> Handle(CaptureEpcisExceptionRequest request, CancellationToken cancellationToken) { var captureRequest = new CaptureCallbackRequest { SubscriptionId = request.SubscriptionName, CallbackType = request.CallbackType, Header = request.Header }; await _documentStore.Capture(captureRequest, _context, cancellationToken); return(EmptyResponse.Value); }
public async Task <IEpcisResponse> Handle(CaptureEpcisDocumentRequest request, CancellationToken cancellationToken) { request.EventList.ForEach(Validate); var captureRequest = new CaptureDocumentRequest { Header = request.Header, EventList = request.EventList, MasterdataList = request.MasterDataList }; await _documentStore.Capture(captureRequest, _context, cancellationToken); return(EmptyResponse.Value); }