Permalink
Browse files

Changed scanning order

  • Loading branch information...
1 parent 6f68802 commit 6a043ac79fe3f342b23a723f327d424239f7a26b @thecodejunkie committed Feb 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Nancy/Bootstrapper/NancyInternalConfiguration.cs
@@ -80,7 +80,7 @@ public static NancyInternalConfiguration Default
RenderContextFactory = typeof(DefaultRenderContextFactory),
ModelValidatorLocator = typeof(DefaultValidatorLocator),
ViewLocationProvider = typeof(FileSystemViewLocationProvider),
- StatusCodeHandlers = new List<Type>(new[] { typeof(DefaultStatusCodeHandler) }.Concat(AppDomainAssemblyTypeScanner.TypesOf<IStatusCodeHandler>(true))),
+ StatusCodeHandlers = new List<Type>(AppDomainAssemblyTypeScanner.TypesOf<IStatusCodeHandler>(ScanMode.ExcludeNancy).Concat(new[] { typeof(DefaultStatusCodeHandler) })),
CsrfTokenValidator = typeof(DefaultCsrfTokenValidator),
ObjectSerializer = typeof(DefaultObjectSerializer),
Serializers = AppDomainAssemblyTypeScanner.TypesOf<ISerializer>(ScanMode.ExcludeNancy).Union(new List<Type>(new[] { typeof(DefaultJsonSerializer), typeof(DefaultXmlSerializer) })).ToList(),

0 comments on commit 6a043ac

Please sign in to comment.