btcpayserver/BTCPayServer/Security/PolicyRequirement.cs

17 lines
400 B
C#
Raw Normal View History

2020-06-29 04:44:35 +02:00
using System;
2019-10-12 13:35:30 +02:00
using Microsoft.AspNetCore.Authorization;
namespace BTCPayServer.Security
{
public class PolicyRequirement : IAuthorizationRequirement
{
public PolicyRequirement(string policy)
{
if (policy == null)
throw new ArgumentNullException(nameof(policy));
Policy = policy;
}
public string Policy { get; }
}
}