Esempio n. 1
0
 public static void BindService(grpc::ServiceBinderBase serviceBinder, LocationsBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_ListLocations, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Location.ListLocationsRequest, global::Google.Cloud.Location.ListLocationsResponse>(serviceImpl.ListLocations));
     serviceBinder.AddMethod(__Method_GetLocation, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Location.GetLocationRequest, global::Google.Cloud.Location.Location>(serviceImpl.GetLocation));
 }
Esempio n. 2
0
 public static grpc::ServerServiceDefinition BindService(LocationsBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_ListLocations, serviceImpl.ListLocations)
            .AddMethod(__Method_GetLocation, serviceImpl.GetLocation).Build());
 }