Example #1
0
        private IWampServer GetClient(IWampConnection <JToken> connection, IWampClient <JToken> wampClient)
        {
            var serverProxyBuilder = new WampServerProxyBuilder <JToken, IWampClient <JToken>, IWampServer>
                                         (new WampOutgoingRequestSerializer <JToken>(mFormatter),
                                         new WampServerProxyOutgoingMessageHandlerBuilder <JToken, IWampClient <JToken> >
                                             (GetHandlerBuilder()));

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

            return(proxy);
        }
Example #2
0
 public IWampServer GetServerProxy(IWampClient <TMessage> callbackClient)
 {
     return(mServerProxyBuilder.Create(callbackClient, mConnection));
 }
        private IWampServer GetClient(IWampConnection<JToken> connection, IWampClient<JToken> wampClient)
        {
            var serverProxyBuilder = new WampServerProxyBuilder<JToken, IWampClient<JToken>, IWampServer>
                (new WampOutgoingRequestSerializer<JToken>(mFormatter),
                 new WampServerProxyOutgoingMessageHandlerBuilder<JToken, IWampClient<JToken>>
                     (GetHandlerBuilder()));

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

            return proxy;
        }