Exemplo n.º 1
0
        private static VdirConfiguration BaseCreateInstance()
        {
            ITopologyConfigurationSession session = VdirConfiguration.CreateADSystemConfigurationSessionScopedToFirstOrg();
            ExchangeVirtualDirectory      member  = HttpProxyGlobals.VdirObject.Member;

            if (member is ADEcpVirtualDirectory)
            {
                return(EcpVdirConfiguration.CreateInstance(session, member.Id));
            }
            if (member is ADOwaVirtualDirectory)
            {
                return(OwaVdirConfiguration.CreateInstance(session, member.Id));
            }
            throw new ADNoSuchObjectException(new LocalizedString(string.Format("NoVdirConfiguration. AppDomainAppId:{0},VDirDN:{1}", HttpRuntime.AppDomainAppId, (member == null) ? "NULL" : member.DistinguishedName)));
        }
Exemplo n.º 2
0
 internal VdirConfiguration(ExchangeWebAppVirtualDirectory virtualDirectory)
 {
     this.internalAuthenticationMethod = VdirConfiguration.ConvertAuthenticationMethods(virtualDirectory.InternalAuthenticationMethods);
     this.externalAuthenticationMethod = VdirConfiguration.ConvertAuthenticationMethods(virtualDirectory.ExternalAuthenticationMethods);
 }