public IUserConfiguration GetConfiguration(IUserConfigurationManager manager) { IUserConfiguration result = null; StoreObjectId folderId = this.GetFolderId(manager.MailboxSession); if (folderId != null) { result = manager.GetFolderConfiguration(this.ConfigurationName, this.Types, folderId); } return(result); }
public IUserConfiguration Rebuild(IUserConfigurationManager manager) { IUserConfiguration result = null; StoreId folderId = this.GetFolderId(manager.MailboxSession); if (folderId != null) { manager.DeleteFolderConfigurations(folderId, new string[] { this.ConfigurationName }); result = manager.CreateFolderConfiguration(this.ConfigurationName, this.Types, folderId); } return(result); }
private AggregatedUserConfiguration(AggregatedUserConfigurationDescriptor descriptor, IUserConfigurationManager manager) { using (DisposeGuard disposeGuard = this.Guard()) { this.descriptor = descriptor; this.manager = manager; this.Load(out this.aggregatedConfiguration, out this.memento, out this.parts, out this.typeBag); this.RemoveOrphanedPendingUpdates(); disposeGuard.Success(); } }
public UserConfigurationController(IUserConfigurationManager userConfigurationManager) { _userConfigurationManager = userConfigurationManager; }