Наследование: EventSource, ICommonLoggingEventSource
Пример #1
0
        public void CanSetEventSourceToSameInstanceOfSameTypeMultipleTimes()
        {
            var eventSource = new TestEventSource4();
            var adapter     = new ETWLoggerFactoryAdapter();

            //setting the event source to the same *instance* multiple times should not throw
            adapter.EventSource = eventSource;
            adapter.EventSource = eventSource;
        }
        public void CanSetEventSourceToSameInstanceOfSameTypeMultipleTimes()
        {
            var eventSource = new TestEventSource4();
            var adapter = new ETWLoggerFactoryAdapter();

            //setting the event source to the same *instance* multiple times should not throw
            adapter.EventSource = eventSource;
            adapter.EventSource = eventSource;
        }