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))); }
internal VdirConfiguration(ExchangeWebAppVirtualDirectory virtualDirectory) { this.internalAuthenticationMethod = VdirConfiguration.ConvertAuthenticationMethods(virtualDirectory.InternalAuthenticationMethods); this.externalAuthenticationMethod = VdirConfiguration.ConvertAuthenticationMethods(virtualDirectory.ExternalAuthenticationMethods); }