/// <summary> /// Initializes a new instance of the <see cref="MessagingUpdateCoordinator"/> class with /// a <see cref="ConfigurationChangeEventSource"/>. /// </summary> /// <remarks> /// The LoggingUpdateCoordinator attaches itself to the <see cref="ConfigurationChangeEventSource"/> events. /// </remarks> /// <param name="eventSource">The source for configuration change events.</param> /// <param name="instrumentationProvider">The <see cref="ILoggingInstrumentationProvider"/> to use for exception and instrumentation event notification.</param> public MessagingUpdateCoordinator(ConfigurationChangeEventSource eventSource, ILoggingInstrumentationProvider instrumentationProvider) { this.accessLock = new ReaderWriterLockSlim(LockRecursionPolicy.NoRecursion); this.eventSource = eventSource; this.instrumentationProvider = instrumentationProvider; if (this.eventSource != null) { this.eventSource.GetSection<MessagingSettings>().SectionChanged += OnConfigurationChanged; } }
public StaticFu(ConfigurationChangeEventSource configurationChangeEventSource) { configurationChangeEventSource.SourceChanged += OnConfigurationChanged; }
/// <summary> /// Initializes a new instance of the <see cref="MessagingUpdateCoordinator"/> class with /// a <see cref="ConfigurationChangeEventSource"/>. /// </summary> /// <remarks> /// The LoggingUpdateCoordinator attaches itself to the <see cref="ConfigurationChangeEventSource"/> events. /// </remarks> /// <param name="eventSource">The source for configuration change events.</param> public MessagingUpdateCoordinator(ConfigurationChangeEventSource eventSource) : this(eventSource, new NullLoggingInstrumentationProvider()) { }
public StaticFu(ConfigurationChangeEventSource configurationChangeEventSource) { configurationChangeEventSource.SourceChanged += OnConfigurationChanged; }