Ejemplo n.º 1
0
        public virtual bool start(SessionParameters _params)
        {
            this.sessionParemeters = _params;
            if (this.SecurityProvider == null || this.DataWriter == null)
            {
                return(false);
            }
            int num = this.SecurityProvider.Authorize(this.sessionParemeters.user) ? 1 : 0;

            ++DataConnectorBase.connectionNum;
            if (DataConnectorBase.connectionNum <= 1)
            {
                return(num != 0);
            }
            throw new Exception("Too many connections");
        }
Ejemplo n.º 2
0
 public void initSession(SessionParameters _params)
 {
     this.session = _params;
 }