示例#1
0
        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));
        }
示例#2
0
        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));
        }
示例#3
0
 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));
 }