/// <summary>
 /// Initializes a new instance of the <see cref="MessagingClientContext" /> class.
 /// </summary>
 /// <param name="readBuffer">The read buffer.</param>
 /// <param name="formatterFactory">Used to format messages </param>
 public MessagingClientContext(IBufferSlice readBuffer, IMessageFormatterFactory formatterFactory)
     : base(readBuffer)
 {
     if (formatterFactory == null) throw new ArgumentNullException("formatterFactory");
     _formatterFactory = formatterFactory;
     _messageBuilder = _formatterFactory.CreateBuilder();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MessagingClient" /> class.
 /// </summary>
 /// <param name="formatterFactory">The formatter factory.</param>
 public MessagingClient(IMessageFormatterFactory formatterFactory)
 {
     if (formatterFactory == null)
     {
         throw new ArgumentNullException("formatterFactory");
     }
     _formatterFactory = formatterFactory;
     _messageBuilder   = _formatterFactory.CreateBuilder();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MessagingClientContext" /> class.
 /// </summary>
 /// <param name="readBuffer">The read buffer.</param>
 /// <param name="formatterFactory">Used to format messages </param>
 public MessagingClientContext(IBufferSlice readBuffer, IMessageFormatterFactory formatterFactory)
     : base(readBuffer)
 {
     if (formatterFactory == null)
     {
         throw new ArgumentNullException("formatterFactory");
     }
     _formatterFactory = formatterFactory;
     _messageBuilder   = _formatterFactory.CreateBuilder();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MessagingClient" /> class.
 /// </summary>
 /// <param name="formatterFactory">The formatter factory.</param>
 public MessagingClient(IMessageFormatterFactory formatterFactory)
 {
     if (formatterFactory == null) throw new ArgumentNullException("formatterFactory");
     _formatterFactory = formatterFactory;
     _messageBuilder = _formatterFactory.CreateBuilder();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MessagingClientContext" /> class.
 /// </summary>
 /// <param name="readBuffer">The read buffer.</param>
 /// <param name="formatterFactory">Used to format messages </param>
 public MessagingClientContext(IBufferSlice readBuffer, IMessageFormatterFactory formatterFactory)
     : base(readBuffer)
 {
     _formatterFactory = formatterFactory;
     _messageBuilder = _formatterFactory.CreateBuilder();
 }