// Token: 0x06000C4D RID: 3149 RVA: 0x00037B60 File Offset: 0x00035D60
        public void DeleteDomain(SmtpDomain domain, Guid tenantId, Namespace ns)
        {
            DeleteDomainRequest request = LocatorServiceClientWriter.ConstructDeleteDomainRequest(domain, tenantId, ns);
            LocatorService      proxy   = this.AcquireServiceProxy();

            GLSLogger.LoggingWrapper <DeleteDomainResponse>(this, domain.ToString(), proxy.GetHashCode().ToString(), () => proxy.DeleteDomain(this.requestIdentity, request));
            base.ReleaseServiceProxy(proxy);
        }
        // Token: 0x06000C4B RID: 3147 RVA: 0x00037A34 File Offset: 0x00035C34
        public void SaveDomain(SmtpDomain domain, string domainKey, Guid tenantId, KeyValuePair <DomainProperty, PropertyValue>[] properties)
        {
            SaveDomainRequest request = LocatorServiceClientWriter.ConstructSaveDomainRequest(domain, domainKey, tenantId, properties);
            LocatorService    proxy   = this.AcquireServiceProxy();

            GLSLogger.LoggingWrapper <SaveDomainResponse>(this, domain.ToString(), proxy.GetHashCode().ToString(), () => proxy.SaveDomain(this.requestIdentity, request));
            base.ReleaseServiceProxy(proxy);
        }
예제 #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 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));
        }
예제 #5
0
        public bool TenantExists(Guid tenantId, Namespace[] ns)
        {
            FindTenantRequest  request            = LocatorServiceClientReader.ConstructTenantExistsRequest(tenantId, ns, this.glsReadFlag);
            LocatorService     proxy              = this.AcquireServiceProxy();
            FindTenantResponse findTenantResponse = GLSLogger.LoggingWrapper <FindTenantResponse>(this, tenantId.ToString(), proxy.GetHashCode().ToString(), () => proxy.FindTenant(this.requestIdentity, request));

            base.ReleaseServiceProxy(proxy);
            return(findTenantResponse.TenantInfo != null);
        }