Exemple #1
0
 private void SetCacheContentAfterSaveMode(RepositoryConfiguration.CacheContentAfterSaveOption option)
 {
     Type type = typeof(RepositoryConfiguration);
     FieldInfo info = type.GetField(CACHECONTENTAFTERSAVEMODE_FIELDNAME, BindingFlags.NonPublic | BindingFlags.Static);
     info.SetValue(null, option);
 }
Exemple #2
0
 public CacheContentAfterSaveModeHacker(RepositoryConfiguration.CacheContentAfterSaveOption option)
 {
     originalOption = GetCacheContentAfterSaveMode();
     SetCacheContentAfterSaveMode(option);
 }