Exemplo 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);
        }
Exemplo n.º 2
0
        public async Task VerifyFinished()
        {
            await _producer.VerifyFinished();

            _producer = null;
        }
Exemplo 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);
 }
Exemplo n.º 4
0
 public Task BecomeProducer(Guid streamId, string providerToUse, string streamNamespace)
 {
     _producer = ProducerObserver.NewObserver(MyLogger(), GrainFactory);
     _producer.BecomeProducer(streamId, GetStreamProvider(providerToUse), streamNamespace);
     return(TaskDone.Done);
 }