public FindDomainsResult FindDomains(SmtpDomain[] domains, DomainProperty[] domainProperties, TenantProperty[] tenantProperties) { FindDomainsRequest request = LocatorServiceClientReader.ConstructFindDomainsRequest(domains, domainProperties, tenantProperties, this.glsReadFlag); LocatorService proxy = this.AcquireServiceProxy(); FindDomainsResponse response = GLSLogger.LoggingWrapper <FindDomainsResponse>(this, domains[0].ToString(), proxy.GetHashCode().ToString(), () => proxy.FindDomains(this.requestIdentity, request)); base.ReleaseServiceProxy(proxy); return(LocatorServiceClientReader.ConstructFindDomainsResult(response)); }
public FindDomainsResult EndFindDomains(IAsyncResult externalAR) { GlsAsyncResult glsAsyncResult = (GlsAsyncResult)externalAR; FindDomainsResponse response = glsAsyncResult.ServiceProxy.EndFindDomains(glsAsyncResult.InternalAsyncResult); base.ReleaseServiceProxy(glsAsyncResult.ServiceProxy); glsAsyncResult.Dispose(); return(LocatorServiceClientReader.ConstructFindDomainsResult(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)); }