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 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; }
public RegisterContent() { InitializeComponent(); txtLicenseKey.Width = this.Width - 50; _licenseKeyService = ObjectLocator.GetInstance <ILicenseKeyService>(); _registerService = ObjectLocator.GetInstance <IRegisterService>(); }
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)); } }
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; }
public RegisterService(ILicenseKeyService licenseKeyService, ILicenseActivationService licenseActivationService) { _licenseKeyService = licenseKeyService; _licenseActivationService = licenseActivationService; }
public RegisterService(ILicenseKeyService licenseKeyService, ILicenseActivationService licenseActivationService, IHardwareFingerprintService hardwareFingerprintService) { _licenseKeyService = licenseKeyService; _licenseActivationService = licenseActivationService; _hardwareFingerprintService = hardwareFingerprintService; }