Exemplo n.º 1
0
        public AvailabilityMonitoringExtensionConfigProvider(AvailabilityTestRegistry availabilityTestRegistry, ILoggerFactory loggerFactory)
        {
            Validate.NotNull(availabilityTestRegistry, nameof(availabilityTestRegistry));
            Validate.NotNull(loggerFactory, nameof(loggerFactory));

            _availabilityTestRegistry = availabilityTestRegistry;
            _log = loggerFactory.CreateLogger(LogMonikers.Categories.Extension);
        }
Exemplo n.º 2
0
        public FunctionInvocationManagementFilter(AvailabilityTestRegistry availabilityTestRegistry, TelemetryConfiguration telemetryConfiguration, INameResolver nameResolver)
        {
            Validate.NotNull(availabilityTestRegistry, nameof(availabilityTestRegistry));
            Validate.NotNull(telemetryConfiguration, nameof(telemetryConfiguration));

            _availabilityTestRegistry = availabilityTestRegistry;
            _telemetryConfiguration   = telemetryConfiguration;
            _availabilityTestScopeSettingsResolver = new AvailabilityTestScopeSettingsResolver(nameResolver);
        }