/// <summary>
 /// Creates a new instance of <see cref="WampClientBuilderFactory{TMessage}"/>.
 /// </summary>
 /// <param name="outgoingSerializer">The <see cref="IWampOutgoingRequestSerializer"/>
 /// used to serialize methods call to <see cref="WampMessage{TMessage}"/>s.</param>
 /// <param name="outgoingHandlerBuilder">The <see cref="IWampOutgoingMessageHandler"/>
 /// used to create the <see cref="IWampOutgoingMessageHandler"/> used to
 /// handle outgoing <see cref="WampMessage{TMessage}"/>s.</param>
 public WampClientBuilderFactory(IWampOutgoingRequestSerializer outgoingSerializer,
                                 IWampOutgoingMessageHandlerBuilder <TMessage> outgoingHandlerBuilder, IWampBinding <TMessage> binding)
 {
     mOutgoingSerializer     = outgoingSerializer;
     mOutgoingHandlerBuilder = outgoingHandlerBuilder;
     mBinding = binding;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a new instance of <see cref="WampClientBuilder{TMessage}"/>.
 /// </summary>
 /// <param name="outgoingSerializer">A <see cref="IWampOutgoingRequestSerializer"/>
 /// used to serialize message calls into <see cref="WampMessage{TMessage}"/>s</param>
 /// <param name="outgoingHandlerBuilder">An <see cref="IWampOutgoingMessageHandlerBuilder{TMessage}"/> used to build
 /// a <see cref="IWampOutgoingMessageHandler"/> per connection.</param>
 /// <param name="container">A <see cref="IWampClientContainer{TMessage,TClient}"/> that contains all clients.</param>
 public WampClientBuilder(IWampOutgoingRequestSerializer outgoingSerializer, IWampOutgoingMessageHandlerBuilder <TMessage> outgoingHandlerBuilder, IWampClientContainer <TMessage, IWampClientProxy <TMessage> > container, IWampBinding <TMessage> binding)
 {
     mOutgoingSerializer     = outgoingSerializer;
     mOutgoingHandlerBuilder = outgoingHandlerBuilder;
     mContainer = container;
     mBinding   = binding;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Creates a new instance of <see cref="WampClientBuilder{TMessage}"/>.
 /// </summary>
 /// <param name="outgoingSerializer">A <see cref="IWampOutgoingRequestSerializer"/>
 /// used to serialize message calls into <see cref="WampMessage{TMessage}"/>s</param>
 /// <param name="outgoingHandlerBuilder">An <see cref="IWampOutgoingMessageHandlerBuilder{TMessage}"/> used to build
 /// a <see cref="IWampOutgoingMessageHandler"/> per connection.</param>
 /// <param name="container">A <see cref="IWampClientContainer{TMessage,TClient}"/> that contains all clients.</param>
 public WampClientBuilder(IWampOutgoingRequestSerializer outgoingSerializer, IWampOutgoingMessageHandlerBuilder <TMessage> outgoingHandlerBuilder, IWampClientContainer <TMessage, IWampClient> container)
 {
     mOutgoingSerializer     = outgoingSerializer;
     mOutgoingHandlerBuilder = outgoingHandlerBuilder;
     mContainer = container;
 }