using Microsoft.AspNetCore.Authorization;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GreenTree.Strohrmann.ERP.Services.Authorization
{
    public class DefaultAuthorizationPolicy : IAuthorizationRequirement
    {
        #region Properties

        /// <summary>
        /// The policy name
        /// </summary>
        public string Policy { get; set; }

        #endregion

        #region Ctor

        /// <summary>
        /// Initializes a new instance of the DefaultAuthorizationPolicy class
        /// </summary>
        public DefaultAuthorizationPolicy()
        {

        }

        /// <summary>
        /// Initializes a new instance of the DefaultAuthorizationPolicy class
        /// </summary>
        /// <param name="policy">The policy name.</param>
        public DefaultAuthorizationPolicy(string policy)
        {
            Policy = policy;
        }

        #endregion
    }
}
