Esempio n. 1
0
        async Task Remove(SagaInstance <TSaga> instance, CancellationToken cancellationToken)
        {
            instance.Remove();

            await _sagas.MarkInUse(cancellationToken).ConfigureAwait(false);

            try
            {
                _sagas.Remove(instance);
            }
            finally
            {
                _sagas.Release();
            }
        }
Esempio n. 2
0
        void RemoveWithinLock(SagaInstance <TSaga> instance)
        {
            instance.Remove();

            _sagas.Remove(instance);
        }