Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit 0737ea3

Browse files
committed
Add NotNull to Predicate setter.
1 parent 4030be5 commit 0737ea3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Microsoft.AspNet.Http.Core/Extensions/MapWhenOptions.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System;
55
using System.Threading.Tasks;
66
using Microsoft.AspNet.Http;
7+
using Microsoft.Framework.Internal;
78

89
namespace Microsoft.AspNet.Builder.Extensions
910
{
@@ -15,7 +16,12 @@ public class MapWhenOptions
1516
/// <summary>
1617
/// The user callback that determines if the branch should be taken
1718
/// </summary>
18-
public Func<HttpContext, bool> Predicate { get; set; }
19+
public Func<HttpContext, bool> Predicate
20+
{
21+
get;
22+
[param: NotNull]
23+
set;
24+
}
1925

2026
/// <summary>
2127
/// The branch taken for a positive match

0 commit comments

Comments
 (0)