public void ApplyPolicy(string typeName) { _logs.FindByName(typeName) .Add(_provenance, "Applying policy {0}".ToFormat(typeName)); _inner.ApplyPolicy(typeName); }
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); }