Exemplo n.º 1
0
        private IConfigDataProvider CreateDataProviderForNonMailboxUser()
        {
            if (base.IsDebugOn)
            {
                base.WriteDebug("Creating data provider for non mailbox user.");
            }
            IConfigDataProvider result = new OWAAppDataProviderForNonMailboxUser((this.Organization == null) ? null : this.Organization.RawIdentity, base.TenantGlobalCatalogSession, base.SessionSettings, !this.OrganizationApp, "Get-App");

            if (this.Identity != null && this.Identity.InternalOWAExtensionId == null)
            {
                this.Identity.InternalOWAExtensionId = OWAExtensionHelper.CreateOWAExtensionId(this, new ADObjectId(), null, this.Identity.RawExtensionName);
            }
            return(result);
        }
Exemplo n.º 2
0
        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();
            }
        }
Exemplo n.º 3
0
        private IConfigDataProvider CreateDataProviderForNonMailboxUser()
        {
            if (!this.OrganizationApp)
            {
                base.WriteError(new LocalizedException(Strings.ErrorParameterRequired("OrganizationApp")), ErrorCategory.InvalidArgument, null);
            }
            if (base.IsDebugOn)
            {
                base.WriteDebug("Creating data provider for non mailbox user.");
            }
            IConfigDataProvider result = new OWAAppDataProviderForNonMailboxUser((this.Organization == null) ? null : this.Organization.RawIdentity, base.TenantGlobalCatalogSession, base.SessionSettings, !this.OrganizationApp, "Set-App");

            if (this.Identity != null && this.Identity.InternalOWAExtensionId == null)
            {
                this.Identity.InternalOWAExtensionId = OWAExtensionHelper.CreateOWAExtensionId(this, new ADObjectId(), null, this.Identity.RawExtensionName);
            }
            return(result);
        }