internal static void CleanupInboxRuleDataProvider(IConfigDataProvider provider) { XsoMailboxDataProviderBase xsoMailboxDataProviderBase = provider as XsoMailboxDataProviderBase; if (xsoMailboxDataProviderBase != null) { xsoMailboxDataProviderBase.Dispose(); } }
internal static void CleanupOWAExtensionDataProvider(IConfigDataProvider provider) { XsoMailboxDataProviderBase xsoMailboxDataProviderBase = provider as XsoMailboxDataProviderBase; if (xsoMailboxDataProviderBase != null) { xsoMailboxDataProviderBase.Dispose(); return; } OWAAppDataProviderForNonMailboxUser owaappDataProviderForNonMailboxUser = provider as OWAAppDataProviderForNonMailboxUser; if (owaappDataProviderForNonMailboxUser != null) { owaappDataProviderForNonMailboxUser.Dispose(); } }