Esempio n. 1
0
 public RequestSenderProbeActor(Client.Configuration configuration, IResponseChannelConsumer consumer, string testId)
 {
     _channel     = ClientConsumerCommons.ClientChannel(configuration, consumer, Logger);
     _cancellable = Stage.Scheduler.Schedule(
         SelfAs <IScheduled <object?> >(),
         null,
         TimeSpan.FromMilliseconds(1),
         TimeSpan.FromMilliseconds(configuration.ProbeInterval));
     _buffer = new MemoryStream(configuration.WriteBufferSize);
 }
Esempio n. 2
0
        public ClientCorrelatingRequesterConsumerActor(Client.Configuration configuration)
        {
            _state = new State(
                configuration,
                ClientConsumerCommons.ClientChannel(configuration, SelfAs <IResponseChannelConsumer>(), Logger),
                null,
                Stage.Scheduler.Schedule(
                    SelfAs <IScheduled <object?> >(),
                    null,
                    TimeSpan.FromMilliseconds(1),
                    TimeSpan.FromMilliseconds(configuration.ProbeInterval)),
                new MemoryStream(configuration.WriteBufferSize));

            _completables        = new Dictionary <string, ICompletesEventually>();
            _randomUuidGenerator = new RandomBasedGenerator();
        }