示例#1
0
        public static GlobeSpotterConfiguration Load()
        {
            try
            {
                Stream globeSpotterConf = Web.GlobeSpotterConfiguration();

                if (globeSpotterConf != null)
                {
                    globeSpotterConf.Position  = 0;
                    _globeSpotterConfiguration =
                        (GlobeSpotterConfiguration)XmlGlobeSpotterconfiguration.Deserialize(globeSpotterConf);
                    globeSpotterConf.Close();
                }
            }
            catch
            {
                // ignored
            }

            return(_globeSpotterConfiguration);
        }
示例#2
0
 public static void Delete()
 {
     _globeSpotterConfiguration = null;
 }