示例#1
0
 protected PipeChannel(ChannelOptions <TPackage> options, PipePackageFilter <TPackage> packageFilter) : base(options)
 {
     Outgoing       = new Pipe();
     Incoming       = new Pipe();
     _packageFilter = packageFilter;
     _logger        = options.ApplicationServices.GetRequiredService <ILogger <PipeChannel <TPackage> > >();
 }
示例#2
0
 public TcpChannelListenerFactory(ILogger <TcpChannelListenerFactory <TPackage, TPackageFilter> > logger, PipePackageFilter <TPackage> pipePackageFilter)
 {
     _logger            = logger;
     _pipePackageFilter = pipePackageFilter;
 }
示例#3
0
 public TcpPipeChannel(Socket socket, ChannelOptions <TPackage> options, PipePackageFilter <TPackage> pipePackageFilter) : base(options, pipePackageFilter)
 {
     _socket = socket;
 }