Ejemplo n.º 1
0
        public RemoteActor(HeaderChannel output, Uri remoteAddress)
        {
            _destinationAddress = ActorUrn.CreateFromRemoteAddress(remoteAddress).ToString();

            HeaderChannel headerChannel = new DestinationHeaderChannel(output, _destinationAddress);

            _output = new MatchHeaderChannel(headerChannel);
        }
Ejemplo n.º 2
0
        public RemoteNode(UntypedChannel input, ChunkWriter output, FiberFactory fiberFactory, Scheduler scheduler,
                          Serializer serializer)
        {
            _disposables = new List <IDisposable>();

            _scheduler = scheduler;

            _fiber = fiberFactory();

            _buffer = new BufferedChunkWriter(_fiber, _scheduler, output, 64 * 1024);
            _buffer.Start();

            _reader = new DeserializeChunkChannel(input, serializer);
            _writer = new SerializeChunkChannel(_buffer, serializer);
        }
Ejemplo n.º 3
0
 public DestinationHeaderChannel(HeaderChannel output, string destinationAddress)
 {
     _output             = output;
     _destinationAddress = destinationAddress;
 }
Ejemplo n.º 4
0
        public MatchHeaderChannel(HeaderChannel output)
        {
            _match = new ThreadSingleton <MatchHeaderChannel, MatchHeader>(() => new MatchHeaderImpl());

            _output = output;
        }