public DefaultWampServer(IWampRpcServer <TMessage> rpcServer, IWampPubSubServer <TMessage> pubSubServer = null, IWampAuxiliaryServer auxiliaryServer = null) { mRpcServer = rpcServer; mPubSubServer = pubSubServer; mAuxiliaryServer = auxiliaryServer; }
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); }
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); }
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); }