Ejemplo n.º 1
0
        private IWampServer GetClient(IWampConnection <JToken> connection, IWampClient <JToken> wampClient)
        {
            var serverProxyBuilder = new ManualWampServerProxyBuilder <JToken, IWampClient <JToken> >
                                         (new WampOutgoingRequestSerializer <JToken>(mFormatter),
                                         new WampServerProxyOutgoingMessageHandlerBuilder <JToken, IWampClient <JToken> >
                                             (GetHandlerBuilder()));

            var proxy =
                serverProxyBuilder.Create(wampClient, connection);

            return(proxy);
        }
Ejemplo n.º 2
0
 public IWampServer GetServerProxy(IWampClient <TMessage> callbackClient)
 {
     return(mServerProxyBuilder.Create(callbackClient, mConnection));
 }