private void UpdateFAI(MailboxStoreTypeProvider session) { using (UserConfigurationXmlAdapter <AggregatedAccountListConfiguration> userConfigurationXmlAdapter = new UserConfigurationXmlAdapter <AggregatedAccountListConfiguration>(session.MailboxSession, "AggregatedAccountList", SaveMode.ResolveConflicts, new GetUserConfigurationDelegate(UserConfigurationHelper.GetMailboxConfiguration), AggregatedAccountListConfiguration.property)) { userConfigurationXmlAdapter.Save(this); } base.ResetChangeTracking(); }
public override IConfigurable Read(MailboxStoreTypeProvider session, ObjectId identity) { base.Principal = ExchangePrincipal.FromADUser(session.ADUser, null); IConfigurable result; using (UserConfigurationXmlAdapter <AggregatedAccountListConfiguration> userConfigurationXmlAdapter = new UserConfigurationXmlAdapter <AggregatedAccountListConfiguration>(session.MailboxSession, "AggregatedAccountList", SaveMode.NoConflictResolution, new GetUserConfigurationDelegate(UserConfigurationHelper.GetMailboxConfiguration), new GetReadableUserConfigurationDelegate(UserConfigurationHelper.GetReadOnlyMailboxConfiguration), AggregatedAccountListConfiguration.property)) { result = userConfigurationXmlAdapter.Read(base.Principal); } return(result); }