コード例 #1
0
ファイル: DocumentStore.cs プロジェクト: leomats/epcis
        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
ファイル: DocumentStore.cs プロジェクト: leomats/epcis
        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);
            });
        }