Ejemplo n.º 1
0
        public bool Invoke(int clientId)
        {
            if (_audienceCollection.IsAll)
            {
                return(true);
            }

            if (_audienceCollection.Any(x => x.Type == CommandTargetType.Client && clientId >= x.From && clientId <= x.To))
            {
                return(true);
            }

            //check group
            throw new NotImplementedException();
        }