예제 #1
0
 public DefaultWampServer(IWampRpcServer <TMessage> rpcServer,
                          IWampPubSubServer <TMessage> pubSubServer = null,
                          IWampAuxiliaryServer auxiliaryServer      = null)
 {
     mRpcServer       = rpcServer;
     mPubSubServer    = pubSubServer;
     mAuxiliaryServer = auxiliaryServer;
 }
예제 #2
0
        public virtual IWampServer <TMessage> Build(IWampFormatter <TMessage> formatter,
                                                    IWampRpcMetadataCatalog rpcMetadataCatalog,
                                                    IWampTopicContainerExtended <TMessage> topicContainer)
        {
            IWampRpcServer <TMessage>    rpcServer       = BuildRpcServer(formatter, rpcMetadataCatalog);
            IWampPubSubServer <TMessage> pubSubServer    = BuildPubSubServer(formatter, topicContainer);
            IWampAuxiliaryServer         auxiliaryServer = BuildAuxiliaryServer(formatter);

            DefaultWampServer <TMessage> server =
                new DefaultWampServer <TMessage>(rpcServer, pubSubServer, auxiliaryServer);

            return(server);
        }
예제 #3
0
        public override IWampServer <TMessage> Build(IWampFormatter <TMessage> formatter,
                                                     IWampRpcMetadataCatalog rpcMetadataCatalog,
                                                     IWampTopicContainerExtended <TMessage> topicContainer)
        {
            IWampRpcServer <TMessage>    rpcServer       = BuildRpcServer(formatter, rpcMetadataCatalog);
            IWampPubSubServer <TMessage> pubSubServer    = BuildPubSubServer(formatter, topicContainer);
            IWampAuxiliaryServer         auxiliaryServer = BuildAuxiliaryServer(formatter);

            WampCraServer <TMessage> server =
                new WampCraServer <TMessage>(mCraAuthenticaticatorBuilder, rpcServer, rpcMetadataCatalog, pubSubServer,
                                             auxiliaryServer);

            return(server);
        }
예제 #4
0
        public WampCraServer(WampCraAuthenticaticatorBuilder <TMessage> authFactory,
                             IWampRpcServer <TMessage> rpcServer,
                             IWampRpcMetadataCatalog rpcMetadataCatalog,
                             IWampPubSubServer <TMessage> pubSubServer = null,
                             IWampAuxiliaryServer auxiliaryServer      = null)
        {
            mAuthFactory     = authFactory;
            mRpcServer       = rpcServer;
            mPubSubServer    = pubSubServer;
            mAuxiliaryServer = auxiliaryServer;

            // Add ICraProcedures to the metadata catalog so the client can call the auth methods.
            mWampCraProceduredMetadata = new MethodInfoWampCraRpcMetadata(new MockWampCraProcedures());
            rpcMetadataCatalog.Register(mWampCraProceduredMetadata);
        }