Google.Cloud.Location - Class Locations (2.2.0)

public static class Locations

Reference documentation and code samples for the Google.Cloud.Location class Locations.

An abstract interface that provides location-related information for a service. Service-specific metadata is provided through the [Location.metadata][google.cloud.location.Location.metadata] field.

Inheritance

object > Locations

Namespace

Google.Cloud.Location

Assembly

Google.Cloud.Location.dll

Methods

BindService(LocationsBase)

public static ServerServiceDefinition BindService(Locations.LocationsBase serviceImpl)

Creates service definition that can be registered with a server

Parameter
NameDescription
serviceImplLocationsLocationsBase

An object implementing the server-side handling logic.

Returns
TypeDescription
ServerServiceDefinition

BindService(ServiceBinderBase, LocationsBase)

public static void BindService(ServiceBinderBase serviceBinder, Locations.LocationsBase serviceImpl)

Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. Note: this method is part of an experimental API that can change or be removed without any prior notice.

Parameters
NameDescription
serviceBinderServiceBinderBase

Service methods will be bound by calling AddMethod on this object.

serviceImplLocationsLocationsBase

An object implementing the server-side handling logic.