public FindTenantResult FindTenant(Guid tenantId, TenantProperty[] tenantProperties) { FindTenantRequest request = LocatorServiceClientReader.ConstructFindTenantRequest(tenantId, tenantProperties, this.glsReadFlag); LocatorService proxy = this.AcquireServiceProxy(); FindTenantResponse response = GLSLogger.LoggingWrapper <FindTenantResponse>(this, tenantId.ToString(), proxy.GetHashCode().ToString(), () => proxy.FindTenant(this.requestIdentity, request)); base.ReleaseServiceProxy(proxy); return(LocatorServiceClientReader.ConstructFindTenantResult(response)); }
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); }