private CompiledSerializer(IProtoTypeSerializer head, RuntimeTypeModel model) { this._head = head; _isStableWireType = head.DemandWireTypeStabilityStatus(); _serializer = Compiler.CompilerContext.BuildSerializer(head, model); _deserializer = Compiler.CompilerContext.BuildDeserializer(head, model); }
private CompiledSerializer(IProtoTypeSerializer head, TypeModel model) { this.head = head; serializer = Compiler.CompilerContext.BuildSerializer(head, model); deserializer = Compiler.CompilerContext.BuildDeserializer(head, model); }
public SimpleCompiledSerializer(IProtoTypeSerializer head, RuntimeTypeModel model) : base(head) { try { serializer = Compiler.CompilerContext.BuildSerializer <T>(model.Scope, head, model); } catch (Exception ex) { throw new InvalidOperationException($"Unable to bind serializer: " + ex.Message, ex); } try { deserializer = Compiler.CompilerContext.BuildDeserializer <T>(model.Scope, head, model, false); } catch (Exception ex) { throw new InvalidOperationException($"Unable to bind deserializer: " + ex.Message, ex); } factory = Compiler.CompilerContext.BuildFactory <T>(model.Scope, head, model); }
private CompiledSerializer(IProtoTypeSerializer head, TypeModel model) { this.head = head; serializer = Compiler.CompilerContext.BuildSerializer(head, model); deserializer = Compiler.CompilerContext.BuildDeserializer(head, model); }
public CompiledSerializer(IProtoTypeSerializer head, TypeModel model) : base(head) { serializer = Compiler.CompilerContext.BuildSerializer(head, model); deserializer = Compiler.CompilerContext.BuildDeserializer(head, model); }