Exemple #1
0
 public void Init(Stream readStream, Stream writeStream, ICapability bootstrapCapability)
 {
     _msgStream  = new MessageStream();
     _segFactory = new ArrayPoolSegmentFactory();
     _msgStream.Init(readStream, writeStream, _segFactory);
     _ctSource      = new CancellationTokenSource();
     _exceptions    = new ConcurrentQueue <System.Exception>();
     _exports       = new ExportTable <Export>();
     _bootstrapCap  = bootstrapCapability;
     _capToExportId = new Dictionary <ICapability, uint>();
 }
Exemple #2
0
 public void Init(Stream readStream, Stream writeStream, ArrayPoolSegmentFactory segmentFactory)
 {
     _readStream  = readStream;
     _writeStream = writeStream;
     _segFactory  = segmentFactory;
 }