public InfoModel(IPersonService pservice, IFilmPersonService fpservice) { _personService = pservice; _filmPersonService = fpservice; _keyService = new KeyService(); }
public BaseService(IRepository <T> repo, IMapper <T> mapper) { _repository = repo; _mapper = mapper; _keyService = new KeyService(); }
public IndexModel(IFilmPersonService service, IPersonService pservice) { _service = service; _personService = pservice; _keyService = new KeyService(); FilmPeople = new List <FilmPersonModel>(); }
public AccountsController( IJwtAccountService <ObjectId> accountService, IKeyService <ObjectId> keyService) { this.accountService = accountService; this.keyService = keyService; }
public ChordBusiness(IKeyService keyService, IAlterationService alterationService, IChordQualityService chordQualityService, IChordService chordService, INoteService noteService) { _keyService = keyService; _alterationService = alterationService; _chordQualityService = chordQualityService; _chordService = chordService; _noteService = noteService; }
public DeleteModel(IMediumService service, IErrorService eservice) : base(eservice) { _service = service; _action = "Delete"; _mainProperty = nameof(MediumToDelete); InitializeDeleteReasons(); _keyService = new KeyService(); }
public CreateModel(IPersonService service, IErrorService eservice) : base(eservice) { _service = service; _action = "Create"; _mainProperty = nameof(PersonToAdd); InitializeCreateReasons(); _keyService = new KeyService(); }
public EditModel(IMediumService service, IErrorService eservice) : base(eservice) { _service = service; _action = "Edit"; _mainProperty = nameof(MediumToEdit); InitializeEditReasons(); _keyService = new KeyService(); }
public MifareCard(ILog logger, IKeyService keyService, ICardReader reader, M1KeyMode keyMode, byte[] defaultKey) { this.logger = logger; this.reader = reader; this.keyService = keyService; this.keyMode = keyMode; this.defaultKey = defaultKey; }
public ConsoleManager(string filePath, IFileService fileService, IKeyService keyService) { Console.Clear(); _fileService = fileService; _keyService = keyService; page = _fileService.ReadFile(new List <List <char> >(), filePath); line = 0; col = 0; }
public ValidateFilmPersonExistsFilterImpl(IFilmPersonRepository repo, IFilmRepository frepo, IPersonRepository prepo) { _repository = repo; _filmRepository = frepo; _personRepository = prepo; _keyService = new KeyService(); }
public ConsoleManager(IFileService fileService, IKeyService keyService) { Console.Clear(); _fileService = fileService; _keyService = keyService; page = new List <List <char> >(); line = 0; col = 0; }
public AuthenticationService(IOptions <JwtOptions> jwtOptions, IPasswordService passwordService, IQueryDispatcherAsync queryDispatcher, IKeyService keyService) { this.jwtOptions = jwtOptions; this.passwordService = passwordService; this.queryDispatcher = queryDispatcher; this.keyService = keyService; }
public DataGridViewModel(IComponentContext container, IKeyService service, IEventAggregator eventAggregator, ILoggerFactory loggerfac) { this.ea = eventAggregator; this.container = container; this.logger = loggerfac.Create <DataGridViewModel>(); var req = new AvailableRequests(); this.Requests = new ObservableCollection <RequestObject>(req.GetRequests()); this.service = service; this.ApiKeys = new ObservableConcurrentDictionary <string, string>(); this.ConnStrings = new ObservableConcurrentDictionary <string, string>(); this.ApiKeys = service.GetKeys(); this.ConnStrings = service.GetConnections(); this.UpdateServicesCommand = new DelegateCommand(UpdateServices); this.AddKeyToPluginCommand = new DelegateCommand(AddKeyToPlugin); this.PingDatabaseCommand = new DelegateCommand(CheckConnection); this.aTimer = new Timer(); this.SelectedItemKey = Properties.Settings.Default.CurrentKey; this.SelectedConnString = Properties.Settings.Default.CurrentConnString; this.Validity = false; this.dictionary = new ResourceDictionary(); this.dictionary.Source = new Uri("/XModule;component/Resources/ResourceDictionary.xaml", UriKind.RelativeOrAbsolute); var value = this.dictionary["idatabackup50"].ToString(); this.ImagePath = this.dictionary["idatabackup50"].ToString(); this.ea.GetEvent <ConnectionImageChanged>().Subscribe((oc) => { if (oc) { this.ImagePath = this.dictionary["idatabaseview50"].ToString(); } else { this.ImagePath = this.dictionary["ideletedatabase50"].ToString(); } }); //subsccribes to the add keepa key event this.ea.GetEvent <AddKeepaKeyEvent>().Subscribe((oc) => { AddKeyToPlugin(); }); //subscribes to the add keepa conn event this.ea.GetEvent <AddKeepaConnEvent>().Subscribe((oc) => { AddConnToPlugin(); }); aTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent); aTimer.Interval = 500; aTimer.Enabled = true; }
public UploadKeysWindow() { InitializeComponent(); WindowHelper.CheckAndApplyTheme(this); _servicesService = ObjectLocator.GetInstance <IServicesService>(); _licenseSetService = ObjectLocator.GetInstance <ILicenseSetService>(); _licenseService = ObjectLocator.GetInstance <ILicenseService>(); _keyService = ObjectLocator.GetInstance <IKeyService>(); }
public UploadKeysWindow() { InitializeComponent(); WindowHelper.CheckAndApplyTheme(this); _servicesService = ObjectLocator.GetInstance<IServicesService>(); _licenseSetService = ObjectLocator.GetInstance<ILicenseSetService>(); _licenseService = ObjectLocator.GetInstance<ILicenseService>(); _keyService = ObjectLocator.GetInstance<IKeyService>(); }
public CaseService( IDataModelService dataModelService, IDataRecordService dataRecordService, IKeyService keyService, IFieldService fieldService, IDataMapperService mapperService) { _dataModelService = dataModelService; _dataRecordService = dataRecordService; _keyService = keyService; _fieldService = fieldService; _mapperService = mapperService; }
public AuthController( IKeyService keyService, IPreSharedKey preSharedKey, IConfiguration configuration, IMapper mapper, IAuthenticationService <LoginRequest> authService ) { this.keyService = keyService; this.preSharedKey = preSharedKey; this.configuration = configuration; this.mapper = mapper; this.authService = authService; }
private void btnSaveAndExport_Click(object sender, System.Windows.RoutedEventArgs e) { if (lstLicenseKeys.Items.Count > 0) { SaveFileDialog dialog = new SaveFileDialog(); dialog.DefaultExt = ".txt"; dialog.Filter = "Text Files (.txt)|*.txt"; dialog.ShowDialog(); if (!String.IsNullOrEmpty(dialog.FileName)) { loadingAnimation.Visibility = Visibility.Visible; BackgroundWorker worker = new BackgroundWorker(); worker.DoWork += delegate(object s, DoWorkEventArgs args) { object[] data = args.Argument as object[]; IKeyService keyService = ObjectLocator.GetInstance <IKeyService>(); keyService.SaveLicenseKeysForLicenseSet((LicenseSet)data[0], data[1] as List <string>); IKeyExportService keyExportService = ObjectLocator.GetInstance <IKeyExportService>(); keyExportService.ExportKeysToFile(data[2].ToString(), data[3].ToString(), ((LicenseSet)data[0]).Name, data[1] as List <string>); System.Diagnostics.Process.Start(dialog.FileName); }; worker.RunWorkerCompleted += delegate(object s, RunWorkerCompletedEventArgs args) { ResetForm(); loadingAnimation.Visibility = Visibility.Collapsed; }; worker.RunWorkerAsync(new object[] { cboLicenseSet.SelectedValue, LicenseKeys.ToList(), dialog.FileName, UIContext.License.Name }); } } else { MessageBox.Show("No license keys have been generated."); } }
public FenesterService ( IScreenRepository screenRepository, IDesktopRepository desktopRepository, IWindowRepository windowRepository, IScreenOsService screenOsService, IWindowOsServiceSync windowOsService, IKeyService keyService, IRunService runService ) { ScreenRepository = screenRepository; DesktopRepository = desktopRepository; WindowRepository = windowRepository; ScreenOsService = screenOsService; WindowOsService = windowOsService; KeyService = keyService; }
public static List<string> GetUsersAjax(string userLogin, IKeyService<UserEntity> userService, string roleName="") { int namesCount = 10; Regex regex = new Regex(@"(\w*)" + userLogin + @"(\w*)", RegexOptions.IgnoreCase); IEnumerable<string> users; if (roleName==String.Empty) users = userService.GetAll().Where(u => regex.Matches(u.Login).Count > 0).Select(u => u.Login); else users = CustomRoleProvider.GetUsersInRole(roleName).Where(x => regex.Matches(x).Count > 0); List<string> userMatches = new List<string>(0); int i = 0; foreach (var user in users) { userMatches.Add(user); if (i >= namesCount) break; } return userMatches; }
public DeleteUserController(IKeyService<UserEntity> userService) { this.userService = userService; }
public KeyController(IKeyService keyService) { this.keyService = keyService }
public TaskViewerController(IKeyService<UserEntity> userService, IKeyService<TaskEntity> taskService, ITaskUserService taskUserService) { this.taskService = taskService; this.userService = userService; this.taskUserService = taskUserService; }
public WalletsController(IKeyService keyService) { _keyService = keyService; }
public Authorization(IKeyService keyService) { m_keyService = keyService; redirectUri = ConfigurationManager.AppSettings["RedirectUri"]; }
public KeyBusiness(IKeyService keyService) { _keyService = keyService; }
public IndexModel(IMediumService service, IErrorService eservice) : base(eservice) { _service = service; _keyService = new KeyService(); Media = new List <MediumDto>(); }
public UserRolesController(IKeyService<UserEntity> userService) { this.userService = userService; }
public NoteService(IKeyService keyService, IIntervalService intervalService) { _keyService = keyService; _intervalService = intervalService; }
public KeyController(IKeyService keyService) { _keyService = keyService; }
public OpenWeatherMapService() { client = new HttpClient(); client.BaseAddress = new Uri(BASEURL); ks = new KeyConstantService(); }
public KeyOperationController(ILogger <KeyOperationController> logger, IKeyService keyService) { _logger = logger; _keyService = keyService; }
public CRUDController(IService <T, TKey> service, IKeyService <TKey> keyService) { this.service = service; this.keyService = keyService; }
public ValidateMediumNotDuplicateFilterImpl(IMediumService service) { _service = service; _keyService = new KeyService(); }
public TaskEditorController(IKeyService<TaskEntity> taskService) { this.taskService = taskService; }