예제 #1
0
 public WampChannel(IControlledWampConnection <TMessage> connection,
                    IWampRpcClientFactory <TMessage> rpcClientFactory,
                    IWampPubSubClientFactory <TMessage> pubSubClientFactory,
                    WampServerProxyBuilder <TMessage, IWampClient <TMessage>, IWampServer> serverProxyBuilder,
                    IWampAuxiliaryClientFactory <TMessage> connectionMonitorFactory)
 {
     mConnection          = connection;
     mRpcClientFactory    = rpcClientFactory;
     mPubSubClientFactory = pubSubClientFactory;
     mServerProxyBuilder  = serverProxyBuilder;
     mConnectionMonitor   = connectionMonitorFactory.CreateMonitor(connection);
 }
예제 #2
0
        public WampChannelFactory(IWampFormatter <TMessage> formatter)
        {
            Formatter = formatter;

            mRpcClientFactory =
                GetRpcClientFactory();

            mPubSubClientFactory =
                GetPubSubClientFactory();

            mServerProxyBuilder =
                GetServerProxyBuilder <IWampClient <TMessage> >();

            mWampAuxiliaryClientFactory =
                GetConnectionMonitorFactory();
        }