Add NotNull to Predicate setter.

This commit is contained in:
Chris Ross 2015-04-20 11:41:43 -07:00
parent 4030be585d
commit 0737ea392f
1 changed files with 7 additions and 1 deletions

View File

@ -4,6 +4,7 @@
using System; using System;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Builder.Extensions namespace Microsoft.AspNet.Builder.Extensions
{ {
@ -15,7 +16,12 @@ namespace Microsoft.AspNet.Builder.Extensions
/// <summary> /// <summary>
/// The user callback that determines if the branch should be taken /// The user callback that determines if the branch should be taken
/// </summary> /// </summary>
public Func<HttpContext, bool> Predicate { get; set; } public Func<HttpContext, bool> Predicate
{
get;
[param: NotNull]
set;
}
/// <summary> /// <summary>
/// The branch taken for a positive match /// The branch taken for a positive match