public FindDomainResult FindDomain(SmtpDomain domain, DomainProperty[] domainProperties, TenantProperty[] tenantProperties) { FindDomainRequest request = LocatorServiceClientReader.ConstructFindDomainRequest(domain, domainProperties, tenantProperties, this.glsReadFlag); LocatorService proxy = this.AcquireServiceProxy(); FindDomainResponse response = GLSLogger.LoggingWrapper <FindDomainResponse>(this, domain.ToString(), proxy.GetHashCode().ToString(), () => proxy.FindDomain(this.requestIdentity, request)); base.ReleaseServiceProxy(proxy); return(LocatorServiceClientReader.ConstructFindDomainResult(response)); }
public FindDomainResult EndFindDomain(IAsyncResult externalAR) { GlsAsyncResult glsAsyncResult = (GlsAsyncResult)externalAR; FindDomainResponse response = glsAsyncResult.ServiceProxy.EndFindDomain(glsAsyncResult.InternalAsyncResult); base.ReleaseServiceProxy(glsAsyncResult.ServiceProxy); glsAsyncResult.Dispose(); return(LocatorServiceClientReader.ConstructFindDomainResult(response)); }
internal static FindDomainsResult ConstructFindDomainsResult(FindDomainsResponse response) { FindDomainResult[] findDomainResults = new FindDomainResult[0]; if (response.DomainsResponse != null) { findDomainResults = (from findDomainResponse in response.DomainsResponse select LocatorServiceClientReader.ConstructFindDomainResult(findDomainResponse)).ToArray <FindDomainResult>(); } return(new FindDomainsResult(findDomainResults)); }