Exemple #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;
 }
        public RegisterContent()
        {
            InitializeComponent();

            txtLicenseKey.Width = this.Width - 50;

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

            txtLicenseKey.Width = this.Width - 50;

            _licenseKeyService = ObjectLocator.GetInstance <ILicenseKeyService>();
            _registerService   = ObjectLocator.GetInstance <IRegisterService>();
        }
Exemple #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));
            }
        }
Exemple #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;
        }
Exemple #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;
 }
Exemple #12
0
 public RegisterService(ILicenseKeyService licenseKeyService, ILicenseActivationService licenseActivationService)
 {
     _licenseKeyService = licenseKeyService;
     _licenseActivationService = licenseActivationService;
 }
Exemple #13
0
 public RegisterService(ILicenseKeyService licenseKeyService, ILicenseActivationService licenseActivationService, IHardwareFingerprintService hardwareFingerprintService)
 {
     _licenseKeyService          = licenseKeyService;
     _licenseActivationService   = licenseActivationService;
     _hardwareFingerprintService = hardwareFingerprintService;
 }
Exemple #14
0
		public RegisterService(ILicenseKeyService licenseKeyService, ILicenseActivationService licenseActivationService, IHardwareFingerprintService hardwareFingerprintService)
		{
			_licenseKeyService = licenseKeyService;
			_licenseActivationService = licenseActivationService;
			_hardwareFingerprintService = hardwareFingerprintService;
		}