public abstract class LookupServiceClientLookupService client wrapper, for convenient use.
Inheritance
System.Object > LookupServiceClientNamespace
Google.Cloud.ServiceDirectory.V1Assembly
Google.Cloud.ServiceDirectory.V1.dll
Remarks
Service Directory API for looking up service data at runtime.
Properties
DefaultEndpoint
public static string DefaultEndpoint { get; }The default endpoint for the LookupService service, which is a host of "servicedirectory.googleapis.com" and a port of 443.
| Property Value | |
|---|---|
| Type | Description |
System.String |
|
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }The default LookupService scopes.
| Property Value | |
|---|---|
| Type | Description |
System.Collections.Generic.IReadOnlyList<System.String> |
|
The default LookupService scopes are:
GrpcClient
public virtual LookupService.LookupServiceClient GrpcClient { get; }The underlying gRPC LookupService client
| Property Value | |
|---|---|
| Type | Description |
LookupService.LookupServiceClient |
|
Methods
Create()
public static LookupServiceClient Create()Synchronously creates a LookupServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use LookupServiceClientBuilder.
| Returns | |
|---|---|
| Type | Description |
LookupServiceClient |
The created LookupServiceClient. |
CreateAsync(CancellationToken)
public static Task<LookupServiceClient> CreateAsync(CancellationToken cancellationToken = default(CancellationToken))Asynchronously creates a LookupServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use LookupServiceClientBuilder.
| Parameter | |
|---|---|
| Name | Description |
cancellationToken |
System.Threading.CancellationTokenThe System.Threading.CancellationToken to use while creating the client. |
| Returns | |
|---|---|
| Type | Description |
System.Threading.Tasks.Task<LookupServiceClient> |
The task representing the created LookupServiceClient. |
ResolveService(ResolveServiceRequest, CallSettings)
public virtual 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 |
Google.Api.Gax.Grpc.CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ResolveServiceResponse |
The RPC response. |
ResolveServiceAsync(ResolveServiceRequest, CallSettings)
public virtual 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 |
Google.Api.Gax.Grpc.CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
System.Threading.Tasks.Task<ResolveServiceResponse> |
A Task containing the RPC response. |
ResolveServiceAsync(ResolveServiceRequest, CancellationToken)
public virtual Task<ResolveServiceResponse> ResolveServiceAsync(ResolveServiceRequest request, CancellationToken cancellationToken)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. |
cancellationToken |
System.Threading.CancellationTokenA System.Threading.CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
System.Threading.Tasks.Task<ResolveServiceResponse> |
A Task containing the RPC response. |
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
| Returns | |
|---|---|
| Type | Description |
System.Threading.Tasks.Task |
A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.