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); }
public WampChannelFactory(IWampFormatter <TMessage> formatter) { Formatter = formatter; mRpcClientFactory = GetRpcClientFactory(); mPubSubClientFactory = GetPubSubClientFactory(); mServerProxyBuilder = GetServerProxyBuilder <IWampClient <TMessage> >(); mWampAuxiliaryClientFactory = GetConnectionMonitorFactory(); }