예제 #1
0
        public override void Revoke()
        {
            PublishedInstanceKey key =
                new PublishedInstanceKey(this.ApplicationName, this.SectionName, this.policy, this.exceptionType, this.name);

            publishedInstancesManager.Revoke(this, key);
        }
예제 #2
0
        public static T BindInstance <T>(string applicationName, string sectionName, string name)
            where T : NamedConfigurationSetting
        {
            PublishedInstanceKey key = new PublishedInstanceKey(applicationName, sectionName, name);

            return(publishedInstancesManager.BindInstance <T>(key));
        }
 public override bool Equals(object obj)
 {
     if (obj is PublishedInstanceKey)
     {
         PublishedInstanceKey otherKey = (PublishedInstanceKey)obj;
         return(this.applicationName == otherKey.applicationName &&
                this.sectionName == otherKey.sectionName);
     }
     return(false);
 }
예제 #4
0
        public static T BindInstance <T>(string applicationName,
                                         string sectionName,
                                         string policy,
                                         string exceptionType,
                                         string name)
            where T : ExceptionHandlerSetting
        {
            PublishedInstanceKey key = new PublishedInstanceKey(applicationName, sectionName, policy, exceptionType, name);

            return(publishedInstancesManager.BindInstance <T>(key));
        }
예제 #5
0
        public override void Publish()
        {
            PublishedInstanceKey key = new PublishedInstanceKey(this.ApplicationName, this.SectionName, this.Name);

            publishedInstancesManager.Publish(this, key);
        }
예제 #6
0
        public static ExceptionTypeSetting BindInstance(string ApplicationName, string SectionName, string Policy, string Name)
        {
            PublishedInstanceKey key = new PublishedInstanceKey(ApplicationName, SectionName, Policy, Name);

            return(publishedInstancesManager.BindInstance <ExceptionTypeSetting>(key));
        }