Exemple #1
0
        public IEnumerable <IClaim> GetRequiredClaims(ICommandInfo info, Func <string, string, IClaim> newClaim)
        {
            ODataQueryCommandInfo commandInfo = (ODataQueryCommandInfo)info;

            return(new[] { newClaim(commandInfo.DataSource, "Read") });
        }
        public IList <Claim> GetRequiredClaims(ICommandInfo info)
        {
            ODataQueryCommandInfo commandInfo = (ODataQueryCommandInfo)info;

            return(new[] { new Claim(commandInfo.DataSource, "Read") });
        }