Example #1
0
 public Primitive(Type type, EncodingBase encoder)
     : base(null, type)
 {
     this.AmqpType = AmqpType.Primitive;
     this.encoder = encoder;
 }
Example #2
0
 public Converted(AmqpType amqpType, Type source, Type target,
     Func<object, object> getTarget, Func<object, object> getSource)
     : base(null, target)
 {
     this.AmqpType = amqpType;
     this.source = source;
     this.target = target;
     this.GetTarget = getTarget;
     this.GetSource = getSource;
     this.encoder = AmqpEncoding.GetEncoding(target);
 }