Esempio n. 1
0
        public DummyAuthentication(IAuthenticationMethod authConfig)
        {
            if(authConfig.IsDefined("user") == false)
                throw new ArgumentException("Dummy authentication does not define 'user'-value");

            _user = authConfig.GetValue("user");
        }
Esempio n. 2
0
        public DummyAuthentication(IAuthenticationMethod authConfig)
        {
            if (authConfig.IsDefined("user") == false)
            {
                throw new ArgumentException("Dummy authentication does not define 'user'-value");
            }

            _user = authConfig.GetValue("user");
        }