Ejemplo n.º 1
0
        public void ApplyPolicy(string typeName)
        {
            _logs.FindByName(typeName)
            .Add(_provenance, "Applying policy {0}".ToFormat(typeName));

            _inner.ApplyPolicy(typeName);
        }
Ejemplo n.º 2
0
        private void readPolicy(Queue <string> tokens, string verb)
        {
            if (verb != "policy")
            {
                throw new InvalidSyntaxException("Invalid usage of 'apply'");
            }

            var typeName = tokens.Join(",");

            _registration.ApplyPolicy(typeName);
        }