Add NotNull to Predicate setter.
This commit is contained in:
parent
4030be585d
commit
0737ea392f
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue