Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #952 from thecodejunkie/statuscodehandlerdiscovery…

…reorder-951

Changed scanning order
  • Loading branch information...
commit 988418e2ebc046274e8657b2520511100a9e375a 2 parents 6f68802 + 6a043ac
@grumpydev grumpydev authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/Nancy/Bootstrapper/NancyInternalConfiguration.cs
View
2  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(),
Please sign in to comment.
Something went wrong with that request. Please try again.