private static string ComposeMessage(Configuration root, string name)
 {
     return ("The configuration named [#{configuration}] was requested, " +
             "but could not be located, on the base configuration [#{full}]. " +
             "Are you missing a key on your configuration file(s)?").ApplyArguments(
         new {full = root.FullName, configuration = name});
 }
예제 #2
0
        public virtual void Add(Configuration configuration)
        {
            if (configuration == null)
            {
                return;
            }

            configuration.Base = this;
            Underlings[configuration.Name] = configuration;
        }
예제 #3
0
 public virtual void Remove(Configuration configuration)
 {
     throw new NotImplementedException();
 }
 public InvalidOrMissingConfigurationException(Configuration root, string name)
     : base(ComposeMessage(root, name))
 {
 }