예제 #1
0
 public KeyProvider(IInterceptKeys interceptKeysSource, IPasswordModeService passwordModeService, IDesktopLockEventService desktopLockEventService)
 {
     processes = new Dictionary <int, Process>();
     this.interceptKeysSource     = interceptKeysSource;
     this.passwordModeService     = passwordModeService;
     this.desktopLockEventService = desktopLockEventService;
 }
예제 #2
0
파일: KeyProvider.cs 프로젝트: bihai/carnac
 public KeyProvider(IInterceptKeys interceptKeysSource, IPasswordModeService passwordModeService, IDesktopLockEventService desktopLockEventService)
 {
     processes = new Dictionary<int, Process>();
     this.interceptKeysSource = interceptKeysSource;
     this.passwordModeService = passwordModeService;
     this.desktopLockEventService = desktopLockEventService;
 }
예제 #3
0
 public KeyProviderTests()
 {
     passwordModeService     = new PasswordModeService();
     desktopLockEventService = Substitute.For <IDesktopLockEventService>();
     desktopLockEventService.GetSessionSwitchStream().Returns(Observable.Never <SessionSwitchEventArgs>());
     settingsProvider = Substitute.For <ISettingsProvider>();
 }
예제 #4
0
        public KeyProvider(IInterceptKeys interceptKeysSource, IPasswordModeService passwordModeService, IDesktopLockEventService desktopLockEventService, ISettingsProvider settingsProvider)
        {
            if (settingsProvider == null)
            {
                throw new ArgumentNullException(nameof(settingsProvider));
            }

            this.interceptKeysSource     = interceptKeysSource;
            this.passwordModeService     = passwordModeService;
            this.desktopLockEventService = desktopLockEventService;

            settings = settingsProvider.GetSettings <PopupSettings>();
        }
예제 #5
0
 public KeyProvider(IObservable <InterceptKeyEventArgs> interceptKeysSource, IPasswordModeService passwordModeService)
 {
     processes = new Dictionary <int, Process>();
     this.interceptKeysSource = interceptKeysSource;
     this.passwordModeService = passwordModeService;
 }
예제 #6
0
 public KeyProviderTests()
 {
     passwordModeService = new PasswordModeService();
     desktopLockEventService = Substitute.For<IDesktopLockEventService>();
     desktopLockEventService.GetSessionSwitchStream().Returns(Observable.Never<SessionSwitchEventArgs>());
 }
예제 #7
0
 public KeyProvider(IObservable<InterceptKeyEventArgs> interceptKeysSource, IPasswordModeService passwordModeService)
 {
     processes = new Dictionary<int, Process>();
     this.interceptKeysSource = interceptKeysSource;
     this.passwordModeService = passwordModeService;
 }
예제 #8
0
 public KeyProviderTests()
 {
     passwordModeService = new PasswordModeService();
 }
예제 #9
0
 public KeyProviderTests()
 {
     passwordModeService = new PasswordModeService();
 }