コード例 #1
0
    public async Task <SagaDataContainer> LoadByCorrelationId(string correlationId)
    {
        var result = await impl.LoadByCorrelationId(correlationId).ConfigureAwait(false);

        await barrier("Saga.Load").ConfigureAwait(false);

        return(result);
    }
コード例 #2
0
    public async Task <object> LoadSaga(string sagaId)
    {
        var container = await persister.LoadByCorrelationId(sagaId).ConfigureAwait(false);

        return(container?.SagaData);
    }
コード例 #3
0
    public async Task <Entity> LoadByCorrelationId(string correlationId)
    {
        await barrier("Saga.Load").ConfigureAwait(false);

        return(await impl.LoadByCorrelationId(correlationId).ConfigureAwait(false));
    }
コード例 #4
0
    public async Task <SagaDataContainer> LoadByCorrelationId(string correlationId)
    {
        await Barrier().ConfigureAwait(false);

        return(await realPersister.LoadByCorrelationId(correlationId).ConfigureAwait(false));
    }