public async Task <bool> IsTearedDown()
        {
            var consumerTearDownState = (_streamConsumer == null) || await _streamConsumer.IsTearedDown();

            var providerTearDownState = (StreamProvider == null) || await StreamProvider.IsTearedDown();

            return(consumerTearDownState && providerTearDownState);
        }
Beispiel #2
0
        public async Task <bool> IsTearedDown()
        {
            var tearDownStates = await ActorModel.WhenAll(_streamConsumer.IsTearedDown(), StreamProvider.IsTearedDown());

            return(tearDownStates[0] && tearDownStates[1]);
        }