예제 #1
0
        public LoginCounterTest()
        {
            LoginTest login = new LoginTest();

            AddDependentObject(login);

            CounterTest counter = new CounterTest();

            AddDependentObject(counter);

            mLoginCounter         = new LoginCounter();
            mLoginCounter.Counter = counter.Counter;
            mLoginCounter.Login   = login.Login;
        }
 public IndependentNTLMAuthenticationProvider(GetUserPassword getUserPassword, int maxLoginAttemptsInWindow, TimeSpan loginWindowDuration)
 {
     m_GetUserPassword = getUserPassword;
     m_loginCounter    = new LoginCounter(maxLoginAttemptsInWindow, loginWindowDuration);
 }