Exemplo n.º 1
0
 public InfoModel(IPersonService pservice,
                  IFilmPersonService fpservice)
 {
     _personService     = pservice;
     _filmPersonService = fpservice;
     _keyService        = new KeyService();
 }
Exemplo n.º 2
0
 public BaseService(IRepository <T> repo,
                    IMapper <T> mapper)
 {
     _repository = repo;
     _mapper     = mapper;
     _keyService = new KeyService();
 }
Exemplo n.º 3
0
 public IndexModel(IFilmPersonService service, IPersonService pservice)
 {
     _service       = service;
     _personService = pservice;
     _keyService    = new KeyService();
     FilmPeople     = new List <FilmPersonModel>();
 }
Exemplo n.º 4
0
 public AccountsController(
     IJwtAccountService <ObjectId> accountService,
     IKeyService <ObjectId> keyService)
 {
     this.accountService = accountService;
     this.keyService     = keyService;
 }
Exemplo n.º 5
0
 public ChordBusiness(IKeyService keyService, IAlterationService alterationService, IChordQualityService chordQualityService, IChordService chordService, INoteService noteService)
 {
     _keyService          = keyService;
     _alterationService   = alterationService;
     _chordQualityService = chordQualityService;
     _chordService        = chordService;
     _noteService         = noteService;
 }
Exemplo n.º 6
0
 public DeleteModel(IMediumService service, IErrorService eservice) : base(eservice)
 {
     _service      = service;
     _action       = "Delete";
     _mainProperty = nameof(MediumToDelete);
     InitializeDeleteReasons();
     _keyService = new KeyService();
 }
Exemplo n.º 7
0
 public CreateModel(IPersonService service, IErrorService eservice) : base(eservice)
 {
     _service      = service;
     _action       = "Create";
     _mainProperty = nameof(PersonToAdd);
     InitializeCreateReasons();
     _keyService = new KeyService();
 }
Exemplo n.º 8
0
 public EditModel(IMediumService service, IErrorService eservice) : base(eservice)
 {
     _service      = service;
     _action       = "Edit";
     _mainProperty = nameof(MediumToEdit);
     InitializeEditReasons();
     _keyService = new KeyService();
 }
Exemplo n.º 9
0
 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;
 }
Exemplo n.º 10
0
 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();
 }
Exemplo n.º 12
0
 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;
 }
Exemplo n.º 14
0
        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;
        }
Exemplo n.º 15
0
        public UploadKeysWindow()
        {
            InitializeComponent();

            WindowHelper.CheckAndApplyTheme(this);

            _servicesService   = ObjectLocator.GetInstance <IServicesService>();
            _licenseSetService = ObjectLocator.GetInstance <ILicenseSetService>();
            _licenseService    = ObjectLocator.GetInstance <ILicenseService>();
            _keyService        = ObjectLocator.GetInstance <IKeyService>();
        }
Exemplo n.º 16
0
        public UploadKeysWindow()
        {
            InitializeComponent();

            WindowHelper.CheckAndApplyTheme(this);

            _servicesService = ObjectLocator.GetInstance<IServicesService>();
            _licenseSetService = ObjectLocator.GetInstance<ILicenseSetService>();
            _licenseService = ObjectLocator.GetInstance<ILicenseService>();
            _keyService = ObjectLocator.GetInstance<IKeyService>();
        }
Exemplo n.º 17
0
 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;
 }
Exemplo n.º 19
0
        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.");
            }
        }
Exemplo n.º 20
0
 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;
 }
Exemplo n.º 21
0
        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;
        }
Exemplo n.º 22
0
 public DeleteUserController(IKeyService<UserEntity> userService)
 {
     this.userService = userService;
 }
Exemplo n.º 23
0
 public KeyController(IKeyService keyService)
 {
     this.keyService = keyService
 }
Exemplo n.º 24
0
 public TaskViewerController(IKeyService<UserEntity> userService, IKeyService<TaskEntity> taskService, ITaskUserService taskUserService)
 {
     this.taskService = taskService;
     this.userService = userService;
     this.taskUserService = taskUserService;
 }
Exemplo n.º 25
0
 public WalletsController(IKeyService keyService)
 {
     _keyService = keyService;
 }
Exemplo n.º 26
0
 public Authorization(IKeyService keyService)
 {
     m_keyService = keyService;
     redirectUri  = ConfigurationManager.AppSettings["RedirectUri"];
 }
Exemplo n.º 27
0
 public KeyBusiness(IKeyService keyService)
 {
     _keyService = keyService;
 }
Exemplo n.º 28
0
 public IndexModel(IMediumService service, IErrorService eservice) : base(eservice)
 {
     _service    = service;
     _keyService = new KeyService();
     Media       = new List <MediumDto>();
 }
Exemplo n.º 29
0
 public UserRolesController(IKeyService<UserEntity> userService)
 {
     this.userService = userService;
 }
Exemplo n.º 30
0
 public NoteService(IKeyService keyService, IIntervalService intervalService)
 {
     _keyService      = keyService;
     _intervalService = intervalService;
 }
Exemplo n.º 31
0
 public KeyController(IKeyService keyService)
 {
     _keyService = keyService;
 }
 public OpenWeatherMapService()
 {
     client             = new HttpClient();
     client.BaseAddress = new Uri(BASEURL);
     ks = new KeyConstantService();
 }
Exemplo n.º 33
0
 public KeyOperationController(ILogger <KeyOperationController> logger,
                               IKeyService keyService)
 {
     _logger     = logger;
     _keyService = keyService;
 }
Exemplo n.º 34
0
 public CRUDController(IService <T, TKey> service, IKeyService <TKey> keyService)
 {
     this.service    = service;
     this.keyService = keyService;
 }
Exemplo n.º 35
0
 public ValidateMediumNotDuplicateFilterImpl(IMediumService service)
 {
     _service    = service;
     _keyService = new KeyService();
 }
Exemplo n.º 36
0
 public TaskEditorController(IKeyService<TaskEntity> taskService)
 {
     this.taskService = taskService;
 }