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); }); }
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); }); }