Permalink
Browse files

Merge pull request #952 from thecodejunkie/statuscodehandlerdiscovery…

…reorder-951

Changed scanning order
  • Loading branch information...
2 parents 6f68802 + 6a043ac commit 988418e2ebc046274e8657b2520511100a9e375a @grumpydev grumpydev 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 988418e

Please sign in to comment.