public SslCertificateTopologyCollector(INodeRefCreator <Site> siteNodeRefCreator,
                                        INodeRefCreator <X509Certificate2> certificateNodeRefCreator,
                                        TimeSpan warningSpan, TimeSpan criticalSpan)
 {
     _siteNodeRefCreator        = siteNodeRefCreator;
     _certificateNodeRefCreator = certificateNodeRefCreator;
     _warningSpan  = warningSpan;
     _criticalSpan = criticalSpan;
 }
        public NoInstancePerformanceCounterCollector(string categogyName, string counterName, string statType,
                                                     INodeRefCreator nodeRefCreator)
        {
            if (nodeRefCreator == null)
            {
                throw new ArgumentNullException();
            }

            _nodeRefCreator = nodeRefCreator;
            _counterName    = counterName;
            _statType       = statType;
            _category       = PerformanceCounterCategory
                              .GetCategories()
                              .SingleOrDefault(category => category.CategoryName.Equals(categogyName,
                                                                                        StringComparison.InvariantCultureIgnoreCase));
            if (_category == null)
            {
                throw new MyExceptions.CategoryNotFoundException(categogyName);
            }
        }
 public SiteTopologyCollector(INodeRefCreator <Site> siteNodeRefCreator, INodeRefCreator <Application> appPoolNodeRefCreator, ILogger logger)
 {
     _siteNodeRefCreator    = siteNodeRefCreator;
     _appPoolNodeRefCreator = appPoolNodeRefCreator;
     _logger = logger;
 }
Exemple #4
0
 public ServerTopologyCollector(INodeRefCreator <object> serverNodeRefCreator)
 {
     _serverNodeRefCreator = serverNodeRefCreator;
 }
Exemple #5
0
 public ValuesCollector(IValuesProvider performanceCounter, INodeRefCreator nodeRefCreator, string statType)
 {
     _performanceCounter = performanceCounter;
     _nodeRefCreator     = nodeRefCreator;
     _statType           = statType;
 }
 public AppPoolTopologyCollector(INodeRefCreator <ApplicationPool> appPoolNodeRefCreator, INodeRefCreator <object> serverNodeRefCreator)
 {
     _appPoolNodeRefCreator = appPoolNodeRefCreator;
     _serverNodeRefCreator  = serverNodeRefCreator;
 }
Exemple #7
0
 public MessageConverterToStatPoint(INodeRefCreator nodeRefCreator)
 {
     _nodeRefCreator = nodeRefCreator;
 }