Esempio n. 1
0
        async Task <SagaStorageFile> Open(Guid sagaId, Type entityType, CancellationToken cancellationToken)
        {
            var sagaManifest = sagaManifests.GetForEntityType(entityType);

            var sagaStorageFile = await SagaStorageFile.Open(sagaId, sagaManifest, cancellationToken)
                                  .ConfigureAwait(false);

            if (sagaStorageFile != null)
            {
                sagaFiles.RegisterSagaFile(sagaStorageFile, sagaId, sagaManifest.SagaEntityType);
            }

            return(sagaStorageFile);
        }