/// <summary>
 /// Sets the transporter encoding/decoding to Protobuf.
 /// </summary>
 /// <param name="adapterBuilder">The adapter builder.</param>
 public static ProtobufTranscodingBuilder WithProtobufTranscoding(this ITranscodingBuilder adapterBuilder)
 {
     adapterBuilder.WithTranscoding <ProtobufEncoder, ProtobufDecoder>();
     return(new ProtobufTranscodingBuilder(adapterBuilder as ResonanceTransporterBuilder));
 }
 /// <summary>
 /// Sets the transporter encoding/decoding to MessagePack.
 /// </summary>
 /// <param name="adapterBuilder">The adapter builder.</param>
 public static IKeepAliveBuilder WithMessagePackTranscoding(this ITranscodingBuilder adapterBuilder)
 {
     adapterBuilder.WithTranscoding <MessagePackEncoder, MessagePackDecoder>();
     return(adapterBuilder as ResonanceTransporterBuilder);
 }