Exemplo n.º 1
0
            public IWampRealmProxy Build(WampClient <TMessage> client)
            {
                IWampServerProxy proxy = mParent.mFactory.Create(client, mConnection);

                WampRealmProxy <TMessage> realm =
                    new WampRealmProxy <TMessage>(mRealmName, proxy, mParent.mBinding, mAuthenticator);

                return(realm);
            }
Exemplo n.º 2
0
 public WampChannel(IControlledWampConnection <TMessage> connection,
                    WampClient <TMessage> client)
 {
     mConnection = connection;
     mConnection.ConnectionOpen   += OnConnectionOpen;
     mConnection.ConnectionError  += OnConnectionError;
     mConnection.ConnectionClosed += OnConnectionClosed;
     mClient = client;
     mServer = client.Realm.Proxy;
 }
Exemplo n.º 3
0
        public WampChannel <TMessage> CreateChannel(string realm, IControlledWampConnection <TMessage> connection)
        {
            var wampRealmProxyFactory =
                new WampRealmProxyFactory(this, realm, connection);

            WampClient <TMessage> client =
                new WampClient <TMessage>(wampRealmProxyFactory);

            return(new WampChannel <TMessage>(connection, client));
        }
Exemplo n.º 4
0
 public ErrorForwarder(WampClient <TMessage> instance)
 {
     mInstance = instance;
 }