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);
        }
Exemple #2
0
 public WampCraHost(IWampConnectionListener <TMessage> connectionListener,
                    IWampFormatter <TMessage> formatter,
                    WampCraAuthenticaticatorBuilder <TMessage> craAuthenticaticatorBuilder) :
     this(new WampCraServerBuilder <TMessage>(craAuthenticaticatorBuilder), connectionListener, formatter)
 {
 }
 public WampCraServerBuilder(WampCraAuthenticaticatorBuilder <TMessage> craAuthenticaticatorBuilder)
 {
     mCraAuthenticaticatorBuilder = craAuthenticaticatorBuilder;
 }