Пример #1
0
        bool IConfigStoreUpdateHandler.OnUpdate(string sectionName, string keyName)
        {
            if (sectionName.Equals(HostingSectionName, StringComparison.OrdinalIgnoreCase))
            {
                using (this.configLock.AcquireWriteLock())
                {
                    this.hostingSettings = HostingSettings.LoadHostingSettings();
                }
            }

            return(true);
        }
Пример #2
0
 private HostingConfig()
 {
     this.hostingSettings = HostingSettings.LoadHostingSettings();
     this.configLock      = new RwLock();
     this.configStore     = NativeConfigStore.FabricGetConfigStore(this);
 }