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);
            }
        }
Ejemplo n.º 3
0
 public SiteTopologyCollector(INodeRefCreator <Site> siteNodeRefCreator, INodeRefCreator <Application> appPoolNodeRefCreator, ILogger logger)
 {
     _siteNodeRefCreator    = siteNodeRefCreator;
     _appPoolNodeRefCreator = appPoolNodeRefCreator;
     _logger = logger;
 }
Ejemplo n.º 4
0
 public ServerTopologyCollector(INodeRefCreator <object> serverNodeRefCreator)
 {
     _serverNodeRefCreator = serverNodeRefCreator;
 }
Ejemplo n.º 5
0
 public ValuesCollector(IValuesProvider performanceCounter, INodeRefCreator nodeRefCreator, string statType)
 {
     _performanceCounter = performanceCounter;
     _nodeRefCreator     = nodeRefCreator;
     _statType           = statType;
 }
Ejemplo n.º 6
0
 public AppPoolTopologyCollector(INodeRefCreator <ApplicationPool> appPoolNodeRefCreator, INodeRefCreator <object> serverNodeRefCreator)
 {
     _appPoolNodeRefCreator = appPoolNodeRefCreator;
     _serverNodeRefCreator  = serverNodeRefCreator;
 }
Ejemplo n.º 7
0
 public MessageConverterToStatPoint(INodeRefCreator nodeRefCreator)
 {
     _nodeRefCreator = nodeRefCreator;
 }