Skip to content

Loading…

Changed scanning order #952

Merged
merged 1 commit into from

2 participants

@thecodejunkie
Custodians of the Super-Duper-Happy-Path member

Fixed #951

@grumpydev grumpydev merged commit 988418e into NancyFx:master

1 check passed

Details default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 5, 2013
  1. @thecodejunkie

    Changed scanning order

    thecodejunkie committed
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(),
Something went wrong with that request. Please try again.