/// <summary> /// Deep copies the current GreyFoxSetting to another instance of GreyFoxSetting. /// </summary> /// <param name="GreyFoxSetting">The GreyFoxSetting to copy to.</param> /// <param name="isolation">Placeholders are used to isolate the GreyFoxSetting from its children.</param> public void CopyTo(GreyFoxSetting greyFoxSetting, bool isolation) { greyFoxSetting.iD = iD; greyFoxSetting.isPlaceHolder = isPlaceHolder; greyFoxSetting.isSynced = isSynced; greyFoxSetting.name = name; greyFoxSetting.settingValue = settingValue; if (parent != null) { if (isolation) { greyFoxSetting.parent = parent.NewPlaceHolder(); } else { greyFoxSetting.parent = parent.Copy(false); } } if (modifyRole != null) { if (isolation) { greyFoxSetting.modifyRole = modifyRole.NewPlaceHolder(); } else { greyFoxSetting.modifyRole = modifyRole.Copy(false); } } greyFoxSetting.isSystemSetting = isSystemSetting; }
private static void cacheStore(GreyFoxSetting greyFoxSetting) { CatchWebCache(); if (_webCache == null) { return; } _webCache.Insert("GFX_GreyFoxSetting_" + greyFoxSetting.ID.ToString(), greyFoxSetting.Copy(true), null, DateTime.MaxValue, TimeSpan.FromSeconds(1800), CacheItemPriority.Normal, null); }