Example #1
0
		private void OnEnable()
		{
			if (!File.Exists(ConfigFile))
			{
				this.rsyncConfig = new RsyncConfig();
				return;
			}
			string s = File.ReadAllText(ConfigFile);
			this.rsyncConfig = MongoHelper.FromJson<RsyncConfig>(s);
		}
Example #2
0
        private void OnEnable()
        {
            if (!File.Exists(ConfigFile))
            {
                this.rsyncConfig = new RsyncConfig();
                return;
            }
            string s = File.ReadAllText(ConfigFile);

            this.rsyncConfig = MongoHelper.FromJson <RsyncConfig>(s);
        }