public sealed class LookupServiceClientImpl : LookupServiceClientReference documentation and code samples for the Service Directory v1 API class LookupServiceClientImpl.
LookupService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.ServiceDirectory.V1Assembly
Google.Cloud.ServiceDirectory.V1.dll
Remarks
Service Directory API for looking up service data at runtime.
Constructors
LookupServiceClientImpl(LookupServiceClient, LookupServiceSettings, ILogger)
public LookupServiceClientImpl(LookupService.LookupServiceClient grpcClient, LookupServiceSettings settings, ILogger logger)Constructs a client wrapper for the LookupService service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
LookupServiceLookupServiceClientThe underlying gRPC client. |
settings |
LookupServiceSettingsThe base LookupServiceSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
GrpcClient
public override LookupService.LookupServiceClient GrpcClient { get; }The underlying gRPC LookupService client
| Property Value | |
|---|---|
| Type | Description |
LookupServiceLookupServiceClient |
|
LocationsClient
public override LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
Methods
ResolveService(ResolveServiceRequest, CallSettings)
public override ResolveServiceResponse ResolveService(ResolveServiceRequest request, CallSettings callSettings = null)Returns a [service][google.cloud.servicedirectory.v1.Service] and its associated endpoints. Resolving a service is not considered an active developer method.
| Parameters | |
|---|---|
| Name | Description |
request |
ResolveServiceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ResolveServiceResponse |
The RPC response. |
ResolveServiceAsync(ResolveServiceRequest, CallSettings)
public override Task<ResolveServiceResponse> ResolveServiceAsync(ResolveServiceRequest request, CallSettings callSettings = null)Returns a [service][google.cloud.servicedirectory.v1.Service] and its associated endpoints. Resolving a service is not considered an active developer method.
| Parameters | |
|---|---|
| Name | Description |
request |
ResolveServiceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskResolveServiceResponse |
A Task containing the RPC response. |