public void ClearCache() { try { SSOSettingsManager.DeleteApp(AppName); } catch { } try { SSOSettingsManager.CreateApp(AppName, "BizTalk Application Users", "BizTalk Server Administrators"); SSOSettingsManager.WriteRawSettings(AppName, DefaultSettings); string value1 = SSOSettingsFileReader.ReadString(AppName, "StringValue"); SSOSettingsManager.WriteSetting(AppName, "StringValue", "TestValue"); string value2 = SSOSettingsFileReader.ReadString(AppName, "StringValue"); Assert.IsTrue(string.Compare(value1, value2, true) == 0); SSOSettingsFileReader.ClearCache(AppName); string value3 = SSOSettingsFileReader.ReadString(AppName, "StringValue"); Assert.IsTrue(string.Compare(value3, value2, true) != 0); } finally { SSOSettingsManager.DeleteApp(AppName); } }
public void ClearCache(string affiliateApplication) { SSOSettingsFileReader.ClearCache(affiliateApplication); }