Example #1
0
        /// <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;
            }
        }
Example #2
0
 public StaticFu(ConfigurationChangeEventSource configurationChangeEventSource)
 {
     configurationChangeEventSource.SourceChanged += OnConfigurationChanged;
 }
Example #3
0
 /// <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;
 }