Esempio n. 1
0
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILicenseKeyService licenseKeyGenerationService, IRSAKeyService rsaKeyService)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            else
            {
                app.UseExceptionHandler("/Error");
                app.UseHsts();
            }

            // Generating encryption keys.
            licenseKeyGenerationService.GeneratePublicPrivateKeyPair();
            rsaKeyService.GeneratePublicPrivateKeyPair();

            app.UseHttpsRedirection();
            app.UseStaticFiles();

            app.UseRouting();
            app.UseAuthorization();

            app.UseEndpoints(endpoints =>
            {
                endpoints.MapRazorPages();
                endpoints.MapControllers();

                endpoints.MapControllerRoute(
                    name: "default",
                    pattern: "{controller}/{action=Index}/{id?}");
            });
        }
 public LicenseActivationService(ILicenseKeyService licenseKeyService, IPackingService packingService, ILicenseActiviationProvider licenseActiviationProvider, IClientLicenseService clientLicenseService)
 {
     _licenseKeyService = licenseKeyService;
     _packingService = packingService;
     _licenseActiviationProvider = licenseActiviationProvider;
     _clientLicenseService = clientLicenseService;
 }
 public LicenseActivationService(ILicenseKeyService licenseKeyService, IPackingService packingService,
                                 ILicenseActiviationProvider licenseActiviationProvider, IClientLicenseService clientLicenseService)
 {
     _licenseKeyService          = licenseKeyService;
     _packingService             = packingService;
     _licenseActiviationProvider = licenseActiviationProvider;
     _clientLicenseService       = clientLicenseService;
 }
Esempio n. 4
0
        public RegisterContent()
        {
            InitializeComponent();

            txtLicenseKey.Width = this.Width - 50;

            _licenseKeyService = ObjectLocator.GetInstance<ILicenseKeyService>();
            _registerService = ObjectLocator.GetInstance<IRegisterService>();
        }
Esempio n. 5
0
		public KeyManagementService(IClientRepository clientRepository, ILicenseKeyService licenseKeyService,
			IActivationLogService activationLogService, IHashingProvider hashingProvider, IServiceProductsRepository serviceProductsRepository)
		{
			_clientRepository = clientRepository;
			_licenseKeyService = licenseKeyService;
			_activationLogService = activationLogService;
			_hashingProvider = hashingProvider;
			_serviceProductsRepository = serviceProductsRepository;
		}
Esempio n. 6
0
        public RegisterContent()
        {
            InitializeComponent();

            txtLicenseKey.Width = this.Width - 50;

            _licenseKeyService = ObjectLocator.GetInstance <ILicenseKeyService>();
            _registerService   = ObjectLocator.GetInstance <IRegisterService>();
        }
Esempio n. 7
0
 public KeyManagementService(IClientRepository clientRepository, ILicenseKeyService licenseKeyService,
                             IActivationLogService activationLogService, IHashingProvider hashingProvider, IServiceProductsRepository serviceProductsRepository)
 {
     _clientRepository          = clientRepository;
     _licenseKeyService         = licenseKeyService;
     _activationLogService      = activationLogService;
     _hashingProvider           = hashingProvider;
     _serviceProductsRepository = serviceProductsRepository;
 }
        public LicenseKeyController(ILicenseKeyService licenses, IDriverService drivers, IOptions <EndpointConfiguration> endpoints)
        {
            _licenses  = licenses;
            _drivers   = drivers;
            _endpoints = endpoints.Value;

            if (string.IsNullOrEmpty(_endpoints.Auth))
            {
                throw new System.Exception(nameof(_endpoints.Auth));
            }
        }
Esempio n. 9
0
        public ServicesService(IServicesRepository servicesRepository, IServiceStatusProvider serviceStatusProvider,
			IPackingService packingService, ILicenseActiviationProvider licenseActiviationProvider, ILicenseKeyService licenseKeyService,
			ILicenseService licenseService, ILicenseSetService licenseSetService, IClientLicenseService clientLicenseService,
			IProductsProvider productsProvider)
        {
            _servicesRepository = servicesRepository;
            _serviceStatusProvider = serviceStatusProvider;
            _packingService = packingService;
            _licenseActiviationProvider = licenseActiviationProvider;
            _licenseKeyService = licenseKeyService;
            _licenseService = licenseService;
            _licenseSetService = licenseSetService;
            _clientLicenseService = clientLicenseService;
            _productsProvider = productsProvider;
        }
Esempio n. 10
0
 public ServicesService(IServicesRepository servicesRepository, IServiceStatusProvider serviceStatusProvider,
                        IPackingService packingService, ILicenseActiviationProvider licenseActiviationProvider, ILicenseKeyService licenseKeyService,
                        ILicenseService licenseService, ILicenseSetService licenseSetService, IClientLicenseService clientLicenseService,
                        IProductsProvider productsProvider)
 {
     _servicesRepository         = servicesRepository;
     _serviceStatusProvider      = serviceStatusProvider;
     _packingService             = packingService;
     _licenseActiviationProvider = licenseActiviationProvider;
     _licenseKeyService          = licenseKeyService;
     _licenseService             = licenseService;
     _licenseSetService          = licenseSetService;
     _clientLicenseService       = clientLicenseService;
     _productsProvider           = productsProvider;
 }
 public LicenseDistributionService(ILicenseKeyService licenseKeyService)
 {
     this.licenseKeyService = licenseKeyService;
 }
Esempio n. 12
0
 public RegisterService(ILicenseKeyService licenseKeyService, ILicenseActivationService licenseActivationService)
 {
     _licenseKeyService = licenseKeyService;
     _licenseActivationService = licenseActivationService;
 }
Esempio n. 13
0
 public RegisterService(ILicenseKeyService licenseKeyService, ILicenseActivationService licenseActivationService, IHardwareFingerprintService hardwareFingerprintService)
 {
     _licenseKeyService          = licenseKeyService;
     _licenseActivationService   = licenseActivationService;
     _hardwareFingerprintService = hardwareFingerprintService;
 }
Esempio n. 14
0
		public RegisterService(ILicenseKeyService licenseKeyService, ILicenseActivationService licenseActivationService, IHardwareFingerprintService hardwareFingerprintService)
		{
			_licenseKeyService = licenseKeyService;
			_licenseActivationService = licenseActivationService;
			_hardwareFingerprintService = hardwareFingerprintService;
		}