Пример #1
0
        public CasController(IUserValidate UserValidate, ICasAuthenticator CasAuthenticator, CasServer CasServer,
                             IUserService userService)
        {
            if (UserValidate == null) throw new ArgumentNullException("UserValidate");
            if (CasAuthenticator == null) throw new ArgumentNullException("CasAuthenticator");
            this.casAuthenticator = CasAuthenticator;

            this.userValidate = UserValidate;

            this.casServer = CasServer;
            this._userService = userService;
        }
Пример #2
0
        public CasController(IUserValidate UserValidate, ICasAuthenticator CasAuthenticator, CasServer CasServer,
                             IUserService userService)
        {
            if (UserValidate == null)
            {
                throw new ArgumentNullException("UserValidate");
            }
            if (CasAuthenticator == null)
            {
                throw new ArgumentNullException("CasAuthenticator");
            }
            this.casAuthenticator = CasAuthenticator;

            this.userValidate = UserValidate;

            this.casServer    = CasServer;
            this._userService = userService;
        }
Пример #3
0
 public UserController(IUserService userService, IKey key)
 {
     this._userService      = userService;
     this._key              = key;
     this._casAuthenticator = new FormsCasAuthenticator();
 }
Пример #4
0
 public UserController(IUserService userService, IKey key)
 {
     this._userService = userService;
     this._key = key;
     this._casAuthenticator = new FormsCasAuthenticator();
 }
Пример #5
0
 public CasServer(IUserValidate userValidate, ICasAuthenticator casAuthenticator)
 {
     this._userValidate     = userValidate;
     this._casAuthenticator = casAuthenticator;
 }
Пример #6
0
 public CasServer(IUserValidate userValidate, ICasAuthenticator casAuthenticator)
 {
     this._userValidate = userValidate;
     this._casAuthenticator = casAuthenticator;
 }