Example #1
0
        public HSMService(IMonitoringCore monitoringCore, ILogger <HSMService> logger)
        {
            _logger         = logger;
            _monitoringCore = monitoringCore;

            _logger.LogInformation("Sensors service started");
        }
Example #2
0
 public ProductController(IMonitoringCore monitoringCore, IUserManager userManager,
                          IConfigurationProvider configurationProvider, IRegistrationTicketManager ticketManager, ILogger <ProductController> logger)
 {
     _monitoringCore        = monitoringCore;
     _userManager           = userManager;
     _ticketManager         = ticketManager;
     _configurationProvider = configurationProvider;
     _logger = logger;
 }
Example #3
0
 public ClientMonitoringService(IHubContext <MonitoringDataHub> hubContext, IMonitoringCore monitoringCore,
                                IUserManager userManager, ISignalRSessionsManager sessionsManager)
 {
     _monitoringDataHubContext = hubContext;
     _monitoringCore           = monitoringCore;
     //TODO: REMOVE WHEN MAKE NORMANL AUTH
     _user            = userManager.GetUserByCertificateThumbprint(CommonConstants.DefaultClientCertificateThumbprint);
     _sessionsManager = sessionsManager;
     //StartTimer();
 }
        public NewProductNameValidator(IMonitoringCore monitoringCore)
        {
            _monitoringCore = monitoringCore;

            RuleFor(x => x)
            .NotNull()
            .WithMessage(ErrorConstants.NameNotNull)
            .Must(IsUniqueName)
            .WithMessage(ErrorConstants.NameUnique)
            .Matches(@"^[0-9a-zA-Z ]+$")
            .WithMessage(ErrorConstants.ProductNameLatin);
        }
        public ExtraKeyValidator(IMonitoringCore monitoringCore)
        {
            _monitoringCore = monitoringCore;

            RuleFor(x => x.ExtraKeyName)
            .NotNull()
            .NotEmpty()
            .WithMessage(ErrorConstants.ExtraKeyNameNotNull);

            When(x => x.ExtraKeyName != null, () =>
            {
                RuleFor(x => x)
                .Must(x => IsUniqueName(x.ExtraKeyName, x.ProductKey))
                .WithMessage(ErrorConstants.ExtraKeyNameUnique);
            });
        }
Example #6
0
 public ViewController(IMonitoringCore monitoringCore, IUserManager userManager)
 {
     _monitoringCore = monitoringCore;
     _userManager    = userManager;
 }
Example #7
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="monitoringCore"></param>
 public SensorsController(IMonitoringCore monitoringCore, ILogger <SensorsController> logger)
 {
     _logger         = logger;
     _monitoringCore = monitoringCore;
 }
 public HomeController(IMonitoringCore monitoringCore, ITreeViewManager treeManager, IUserManager userManager)
 {
     _monitoringCore = monitoringCore;
     _treeManager    = treeManager;
     _userManager    = userManager;
 }
Example #9
0
 public ValuesController(IMonitoringCore monitoringCore, ILogger <ValuesController> logger)
 {
     _logger         = logger;
     _monitoringCore = monitoringCore;
 }