From 0737ea392f9747f80ebc0854cb29b544958994a1 Mon Sep 17 00:00:00 2001 From: Chris Ross Date: Mon, 20 Apr 2015 11:41:43 -0700 Subject: [PATCH] Add NotNull to Predicate setter. --- .../Extensions/MapWhenOptions.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.AspNet.Http.Core/Extensions/MapWhenOptions.cs b/src/Microsoft.AspNet.Http.Core/Extensions/MapWhenOptions.cs index 27a9d9b1be..86967a2c70 100644 --- a/src/Microsoft.AspNet.Http.Core/Extensions/MapWhenOptions.cs +++ b/src/Microsoft.AspNet.Http.Core/Extensions/MapWhenOptions.cs @@ -4,6 +4,7 @@ using System; using System.Threading.Tasks; using Microsoft.AspNet.Http; +using Microsoft.Framework.Internal; namespace Microsoft.AspNet.Builder.Extensions { @@ -15,7 +16,12 @@ namespace Microsoft.AspNet.Builder.Extensions /// /// The user callback that determines if the branch should be taken /// - public Func Predicate { get; set; } + public Func Predicate + { + get; + [param: NotNull] + set; + } /// /// The branch taken for a positive match