示例#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));
        }