Esempio n. 1
0
        public virtual Task BecomeProducer(Guid streamId, string providerToUse, string streamNamespace)
        {
            _cleanedUpFlag.ThrowNotInitializedIfSet();

            ProducerObserver producer = ProducerObserver.NewObserver(_logger, GrainFactory);

            producer.BecomeProducer(streamId, this.GetStreamProvider(providerToUse), streamNamespace);
            _producers.Add(producer);
            return(Task.CompletedTask);
        }
Esempio n. 2
0
        public async Task VerifyFinished()
        {
            await _producer.VerifyFinished();

            _producer = null;
        }
Esempio n. 3
0
 public Task BecomeProducer(Guid streamId, string providerToUse, string streamNamespace)
 {
     _producer = ProducerObserver.NewObserver(_logger, GrainFactory);
     _producer.BecomeProducer(streamId, this.GetStreamProvider(providerToUse), streamNamespace);
     return(Task.CompletedTask);
 }
 public Task BecomeProducer(Guid streamId, string providerToUse, string streamNamespace)
 {
     _producer = ProducerObserver.NewObserver(MyLogger(), GrainFactory);
     _producer.BecomeProducer(streamId, GetStreamProvider(providerToUse), streamNamespace);
     return(TaskDone.Done);
 }