Exemplo n.º 1
0
 /// <summary>
 /// Create a transcoder for payloads with specified compile-time schema
 /// </summary>
 /// <param name="type">Type representing a Bond schema</param>
 /// <param name="parser">Custom <see cref="IParser"/> instance</param>
 public Transcoder(Type type, IParser parser)
 {
     helper = (TranscoderHelper)Activator.CreateInstance(helperType, type, parser);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Create a transcoder for payloads with specified runtime schema
 /// </summary>
 /// <param name="schema">Payload schema, required for transcoding from untagged protocols</param>
 /// <param name="parser">Custom <see cref="IParser"/> instance</param>
 public Transcoder(RuntimeSchema schema, IParser parser)
 {
     helper = (TranscoderHelper)Activator.CreateInstance(helperType, schema, parser);
 }