public MachineLicenseValidationService(IIdentificationService identificationService)
        {
            Argument.IsNotNull(() => identificationService);

            _identificationService = identificationService;

            Threshold = 1;
        }
Example #2
0
        public MachineLicenseValidationService(IIdentificationService identificationService)
        {
            Argument.IsNotNull(() => identificationService);

            _identificationService = identificationService;

            Threshold = 1;
        }
Example #3
0
 /// <summary>
 /// Инициализирует новый экземпляр класса <see cref="TokenController"/>.
 /// </summary>
 /// <param name="clientService">Сервис для работы с базой клиентов.</param>
 /// <param name="createTokenService">Сервис для создания токена авторизации.</param>
 /// <param name="identificationService">Сервис для идентификации клиента.</param>
 /// <param name="loggedRequestsService">Сервис для возврата логгированных ответов сервера.</param>
 public TokenController(IClientService clientService,
                        ICreateTokenService createTokenService,
                        IIdentificationService identificationService,
                        ILoggedRequestsService loggedRequestsService)
 {
     _clientService         = clientService;
     _createTokenService    = createTokenService;
     _identificationService = identificationService;
     _loggedRequestsService = loggedRequestsService;
 }
        public NetworkLicenseService(ILicenseService licenseService, IIdentificationService identificationService)
        {
            Argument.IsNotNull(() => licenseService);
            Argument.IsNotNull(() => identificationService);

            _licenseService = licenseService;
            _identificationService = identificationService;

            SearchTimeout = TimeSpan.FromSeconds(2);
        }
Example #5
0
 public UpdateFacetsFromTracker([NotNull] IIdentificationService identificationService,
                                [NotNull] IDemographicsService demographicsService,
                                [NotNull] ISportsService sportsService,
                                [NotNull] IStringValueListFacetService stringValueListFacetService)
 {
     this.identificationService       = identificationService;
     this.demographicsService         = demographicsService;
     this.sportsService               = sportsService;
     this.stringValueListFacetService = stringValueListFacetService;
 }
        public NetworkLicenseService(ILicenseService licenseService, IIdentificationService identificationService)
        {
            Argument.IsNotNull(() => licenseService);
            Argument.IsNotNull(() => identificationService);

            _licenseService        = licenseService;
            _identificationService = identificationService;

            SearchTimeout = TimeSpan.FromSeconds(2);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="LicenseValidationService" /> class.
        /// </summary>
        /// <param name="applicationIdService">The application identifier service.</param>
        /// <param name="expirationBehavior">The expiration behavior.</param>
        /// <param name="identificationService">The identification service.</param>
        public LicenseValidationService(IApplicationIdService applicationIdService, IExpirationBehavior expirationBehavior,
            IIdentificationService identificationService)
        {
            Argument.IsNotNull(() => applicationIdService);
            Argument.IsNotNull(() => expirationBehavior);
            Argument.IsNotNull(() => identificationService);

            _applicationIdService = applicationIdService;
            _expirationBehavior = expirationBehavior;
            _identificationService = identificationService;
        }
Example #8
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LicenseValidationService" /> class.
        /// </summary>
        /// <param name="applicationIdService">The application identifier service.</param>
        /// <param name="expirationBehavior">The expiration behavior.</param>
        /// <param name="identificationService">The identification service.</param>
        /// <param name="machineLicenseValidationService">The machine license validation service.</param>
        public LicenseValidationService(IApplicationIdService applicationIdService, IExpirationBehavior expirationBehavior,
                                        IIdentificationService identificationService, IMachineLicenseValidationService machineLicenseValidationService)
        {
            Argument.IsNotNull(() => applicationIdService);
            Argument.IsNotNull(() => expirationBehavior);
            Argument.IsNotNull(() => identificationService);
            Argument.IsNotNull(() => machineLicenseValidationService);

            _applicationIdService            = applicationIdService;
            _expirationBehavior              = expirationBehavior;
            _identificationService           = identificationService;
            _machineLicenseValidationService = machineLicenseValidationService;
        }
Example #9
0
        public UploadManager(IIdentificationService identificationService, IConfiguration configuration, ILogger <UploadManager> logger)
        {
            this.disposeCancellation     = new CancellationTokenSource();
            this.StorageConnectionString = configuration.GetValue <string>("Data:AzureBlobConnection");
            this.GlobalIdentifier        = identificationService.GetSanitizedIdentifier();
            this.logger = logger;
            var connections = configuration.GetValue("Data:DefaultConnectionLimit", Environment.ProcessorCount - 2);

            ServicePointManager.DefaultConnectionLimit = Math.Max(connections, 1);

            this.uploadRetries = configuration.GetValue("Data:UploadRetries", 10);

            this.cloudBlobContainerTask = this.InitializeContainerAsync();
        }
Example #10
0
        public MainWindow(AppSettings settings,
                          IGameLibraryService gameLibraryService, IEmulationService emulationService, IIdentificationService identificationService,
                          ICoverService coverService, IVersionManagementService versionManagementService, IFileHelpers fileHelpers)
        {
            InitializeComponent();
            this.settings                 = settings;
            this.gameLibraryService       = gameLibraryService;
            this.emulationService         = emulationService;
            this.identificationService    = identificationService;
            this.coverService             = coverService;
            this.versionManagementService = versionManagementService;
            this.fileHelpers              = fileHelpers;

            PopulateGameModelsFromLibrary();
            userSettingsModel        = new UserSettingsModel(settings.UserSettings);
            gamesList.ItemsSource    = gameModels;
            settingsMenu.DataContext = userSettingsModel;
        }
Example #11
0
 public ImportDecisionMaker(IEnumerable <IImportDecisionEngineSpecification <LocalBook> > trackSpecifications,
                            IEnumerable <IImportDecisionEngineSpecification <LocalEdition> > bookSpecifications,
                            IMediaFileService mediaFileService,
                            IMetadataTagService metadataTagService,
                            IAugmentingService augmentingService,
                            IIdentificationService identificationService,
                            IRootFolderService rootFolderService,
                            IProfileService qualityProfileService,
                            Logger logger)
 {
     _trackSpecifications   = trackSpecifications;
     _bookSpecifications    = bookSpecifications;
     _mediaFileService      = mediaFileService;
     _metadataTagService    = metadataTagService;
     _augmentingService     = augmentingService;
     _identificationService = identificationService;
     _rootFolderService     = rootFolderService;
     _qualityProfileService = qualityProfileService;
     _logger = logger;
 }
Example #12
0
 public ImportDecisionMaker(IEnumerable <IImportDecisionEngineSpecification <LocalTrack> > trackSpecifications,
                            IEnumerable <IImportDecisionEngineSpecification <LocalAlbumRelease> > albumSpecifications,
                            IMediaFileService mediaFileService,
                            IAudioTagService audioTagService,
                            IAugmentingService augmentingService,
                            IIdentificationService identificationService,
                            IRootFolderService rootFolderService,
                            IProfileService qualityProfileService,
                            Logger logger)
 {
     _trackSpecifications   = trackSpecifications;
     _albumSpecifications   = albumSpecifications;
     _mediaFileService      = mediaFileService;
     _audioTagService       = audioTagService;
     _augmentingService     = augmentingService;
     _identificationService = identificationService;
     _rootFolderService     = rootFolderService;
     _qualityProfileService = qualityProfileService;
     _logger = logger;
 }
Example #13
0
 public ImportDecisionMaker(IEnumerable <IImportDecisionEngineSpecification <LocalTrack> > trackSpecifications,
                            IEnumerable <IImportDecisionEngineSpecification <LocalAlbumRelease> > albumSpecifications,
                            IMediaFileService mediaFileService,
                            IAudioTagService audioTagService,
                            IAugmentingService augmentingService,
                            IIdentificationService identificationService,
                            IAlbumService albumService,
                            IReleaseService releaseService,
                            IEventAggregator eventAggregator,
                            IDiskProvider diskProvider,
                            Logger logger)
 {
     _trackSpecifications   = trackSpecifications;
     _albumSpecifications   = albumSpecifications;
     _mediaFileService      = mediaFileService;
     _audioTagService       = audioTagService;
     _augmentingService     = augmentingService;
     _identificationService = identificationService;
     _albumService          = albumService;
     _releaseService        = releaseService;
     _eventAggregator       = eventAggregator;
     _diskProvider          = diskProvider;
     _logger = logger;
 }
Example #14
0
 private void CloseCurrentProfile()
 {
     if (VideoSource == null) return;
     VideoSource.NewFrame -= VideoSourceOnNewFrame;
     VideoSource.Dispose();
     VideoSource = null;
     _objectTracker.Dispose();
     _objectTracker = null;
     _identificationService.Dispose();
     _identificationService = null;
 }
Example #15
0
 public void LoadProfile(Profile profile)
 {
     CloseCurrentProfile();
     CurrentTrackedObjects.Clear();
     ArchivedObjects.Clear();
     Profile = profile;
     var identifier = CreateIdentifier();
     _identificationService = CreateIdService(identifier);
     _objectTracker = new ObjectTracker(profile.TrackerSettings);
     VideoSource = VideoSourceFactory.Create(profile);
     VideoSource.NewFrame += VideoSourceOnNewFrame;
 }
Example #16
0
 public HabitatFitnessIdentificationController([NotNull] IIdentificationService service)
 {
     this.service = service;
 }
Example #17
0
 public IdentificationController(IIdentificationService identificationService)
 {
     _identificationService = identificationService;
 }