From 110ed95540291940db58cf292e610a635c967a15 Mon Sep 17 00:00:00 2001 From: Kristoffer Ahl Date: Wed, 17 Apr 2013 16:23:57 +0200 Subject: [PATCH] - Removed the IgnoreTypeLoadExceptions property from SecurityDoctor. --- .../Diagnostics/SecurityDoctorSpecs.cs | 6 ------ FluentSecurity/Diagnostics/SecurityDoctor.cs | 4 +--- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/FluentSecurity.Specification/Diagnostics/SecurityDoctorSpecs.cs b/FluentSecurity.Specification/Diagnostics/SecurityDoctorSpecs.cs index efd1b7ff..1644e49c 100644 --- a/FluentSecurity.Specification/Diagnostics/SecurityDoctorSpecs.cs +++ b/FluentSecurity.Specification/Diagnostics/SecurityDoctorSpecs.cs @@ -23,12 +23,6 @@ public void Should_not_have_event_listeners_registered() Assert.That(SecurityDoctor.Listeners, Is.Null); } - [Test] - public void Should_ignore_TypeLoadExceptions() - { - Assert.That(SecurityDoctor.IgnoreTypeLoadExceptions, Is.True); - } - [Test] public void Should_register_event_listener() { diff --git a/FluentSecurity/Diagnostics/SecurityDoctor.cs b/FluentSecurity/Diagnostics/SecurityDoctor.cs index 42b5d3cc..086c6cae 100644 --- a/FluentSecurity/Diagnostics/SecurityDoctor.cs +++ b/FluentSecurity/Diagnostics/SecurityDoctor.cs @@ -16,7 +16,7 @@ public static void ScanForEventListeners() { var assemblyScanner = new AssemblyScanner(); assemblyScanner.AssembliesFromApplicationBaseDirectory(); - assemblyScanner.With(new SecurityEventListenerScanner(IgnoreTypeLoadExceptions)); + assemblyScanner.With(); var eventListeners = assemblyScanner.Scan(); foreach (var eventListenerType in eventListeners) @@ -26,7 +26,6 @@ public static void ScanForEventListeners() } } - public static bool IgnoreTypeLoadExceptions { get; set; } internal static IList Listeners { get; private set; } public static void Register(Action eventListener) @@ -42,7 +41,6 @@ public static void Register(ISecurityEventListener eventListener) public static void Reset() { - IgnoreTypeLoadExceptions = true; Listeners = null; } }