示例#1
0
 public MessageSerializer(
     SerializationManager serializationManager,
     SharedMemoryPool memoryPool,
     int maxHeaderSize,
     int maxBodySize)
 {
     this.headersSerializer = new HeadersSerializer(serializationManager);
     this.objectSerializer  = new OrleansSerializer <object>(serializationManager);
     this.memoryPool        = memoryPool.Pool;
     this.maxHeaderLength   = maxHeaderSize;
     this.maxBodyLength     = maxBodySize;
 }
示例#2
0
 public MessageSerializer(SerializationManager serializationManager, SharedMemoryPool memoryPool)
 {
     this.headersSerializer = new HeadersSerializer(serializationManager);
     this.objectSerializer  = new OrleansSerializer <object>(serializationManager);
     this.memoryPool        = memoryPool.Pool;
 }