public RemoteActor(HeaderChannel output, Uri remoteAddress) { _destinationAddress = ActorUrn.CreateFromRemoteAddress(remoteAddress).ToString(); HeaderChannel headerChannel = new DestinationHeaderChannel(output, _destinationAddress); _output = new MatchHeaderChannel(headerChannel); }
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); }
public DestinationHeaderChannel(HeaderChannel output, string destinationAddress) { _output = output; _destinationAddress = destinationAddress; }
public MatchHeaderChannel(HeaderChannel output) { _match = new ThreadSingleton <MatchHeaderChannel, MatchHeader>(() => new MatchHeaderImpl()); _output = output; }