コード例 #1
0
        internal static FindDomainResult ConstructFindDomainResult(FindDomainResponse response)
        {
            IDictionary <DomainProperty, PropertyValue> domainProperties = (response.DomainInfo != null && response.DomainInfo.Properties != null) ? LocatorServiceClientReader.ConstructDomainPropertyDictionary(response.DomainInfo.Properties) : new Dictionary <DomainProperty, PropertyValue>();
            IDictionary <TenantProperty, PropertyValue> tenantProperties = (response.TenantInfo != null && response.TenantInfo.Properties != null) ? LocatorServiceClientReader.ConstructTenantPropertyDictionary(response.TenantInfo.Properties) : new Dictionary <TenantProperty, PropertyValue>();
            Guid tenantId = (response.TenantInfo != null) ? response.TenantInfo.TenantId : Guid.Empty;

            return(new FindDomainResult((response.DomainInfo == null) ? null : response.DomainInfo.DomainName, tenantId, tenantProperties, domainProperties));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        public bool DomainExists(SmtpDomain domain, Namespace[] ns)
        {
            FindDomainRequest  request            = LocatorServiceClientReader.ConstructDomainExistsRequest(domain, ns, this.glsReadFlag);
            LocatorService     proxy              = this.AcquireServiceProxy();
            FindDomainResponse findDomainResponse = GLSLogger.LoggingWrapper <FindDomainResponse>(this, domain.ToString(), proxy.GetHashCode().ToString(), () => proxy.FindDomain(this.requestIdentity, request));

            base.ReleaseServiceProxy(proxy);
            return(findDomainResponse.DomainInfo != null);
        }
コード例 #4
0
        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));
        }
コード例 #5
0
        public bool EndDomainExists(IAsyncResult externalAR)
        {
            GlsAsyncResult     glsAsyncResult     = (GlsAsyncResult)externalAR;
            FindDomainResponse findDomainResponse = glsAsyncResult.ServiceProxy.EndFindDomain(glsAsyncResult.InternalAsyncResult);

            base.ReleaseServiceProxy(glsAsyncResult.ServiceProxy);
            glsAsyncResult.Dispose();
            return(findDomainResponse.DomainInfo != null);
        }
コード例 #6
0
 internal void Populate(FindDomainResponse response)
 {
 }