예제 #1
0
        public async Task Capture(CaptureCallbackRequest request, RequestContext context, CancellationToken cancellationToken)
        {
            await Commit(async tx => {
                var headerId = await PersistHeader(request.Header, tx, context, cancellationToken);

                await SubscriptionCallbackStore.Store(request, headerId, tx, cancellationToken);
                await EpcisEventStore.StoreEpcisEvents(request.EventList, tx, headerId, cancellationToken);
            });
        }
예제 #2
0
        public async Task Capture(CaptureDocumentRequest request, RequestContext context, CancellationToken cancellationToken)
        {
            await Commit(async tx => {
                var headerId = await PersistHeader(request.Header, tx, context, cancellationToken);

                await EpcisEventStore.StoreEpcisEvents(request.EventList, tx, headerId, cancellationToken);
                await EpcisMasterdataStore.StoreEpcisMasterdata(request.MasterdataList, tx, headerId, cancellationToken);
            });
        }