コード例 #1
0
        private static RelayNodeConfig GetDefaultConfig()
        {
            if (DefaultConfiguration == null)
            {
                log.Info("No Data Relay configuration found. Getting default client configuration from configuration server.");
                DefaultConfiguration = RelayNodeSectionHandler.GetRelayNodeConfig(GetDefaultConfigNode());
                AddReloadEventHandler(ReloadDefaultConfig);
            }

            return(DefaultConfiguration);
        }
コード例 #2
0
 private static void AddReloadEventHandler(EventHandler reloadEventHandler)
 {
     RelayNodeSectionHandler.AddReloadEventHandler(reloadEventHandler);
 }