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)); }
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 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); }
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)); }
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); }
internal void Populate(FindDomainResponse response) { }