Exemplo n.º 1
0
 public NetEventIOServer_Options(OnPasswordLogin onPasswordLogin, OnTokenLogin onTokenLogin, OnSubscribe onSubscribe,
                                 OnUnsubscribe onUnsubscribe, OnUnsubscribeAll onUnsubscribeAll) : this(onPasswordLogin, onTokenLogin)
 {
     this.onSubscribe      = onSubscribe;
     this.onUnsubscribe    = onUnsubscribe;
     this.onUnsubscribeAll = onUnsubscribeAll;
 }
Exemplo n.º 2
0
        public NetEventIOServer_Options(OnPasswordLogin onPasswordLogin, OnTokenLogin onTokenLogin) : this()
        {
            this.onPasswordLogin = onPasswordLogin;
            this.onTokenLogin    = onTokenLogin;

            this.onSubscribe      = (NetEventIO sender, string topicName) => { return(false); };
            this.onUnsubscribe    = (NetEventIO sender, string topicName) => { return(false); };
            this.onUnsubscribeAll = (NetEventIO sender) => { return(false); };
        }
Exemplo n.º 3
0
 public NetEventIOServer_Options()
 {
     onPasswordLogin = (NetEventIO client, string pwd) =>
     {
         return(false);
     };
     onTokenLogin = (NetEventIO client, string token, string addr) =>
     {
         return(false);
     };
     onSubscribe = (NetEventIO sender, string topicName) =>
     {
         return(false);
     };
     onUnsubscribe = (NetEventIO sender, string topicName) =>
     {
         return(false);
     };
 }