Ejemplo n.º 1
0
 public static grpc::ServerServiceDefinition BindService(SnapshotsV1Beta3Base serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_GetSnapshot, serviceImpl.GetSnapshot)
            .AddMethod(__Method_DeleteSnapshot, serviceImpl.DeleteSnapshot)
            .AddMethod(__Method_ListSnapshots, serviceImpl.ListSnapshots).Build());
 }
Ejemplo n.º 2
0
 public static void BindService(grpc::ServiceBinderBase serviceBinder, SnapshotsV1Beta3Base serviceImpl)
 {
     serviceBinder.AddMethod(__Method_GetSnapshot, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dataflow.V1Beta3.GetSnapshotRequest, global::Google.Cloud.Dataflow.V1Beta3.Snapshot>(serviceImpl.GetSnapshot));
     serviceBinder.AddMethod(__Method_DeleteSnapshot, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dataflow.V1Beta3.DeleteSnapshotRequest, global::Google.Cloud.Dataflow.V1Beta3.DeleteSnapshotResponse>(serviceImpl.DeleteSnapshot));
     serviceBinder.AddMethod(__Method_ListSnapshots, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dataflow.V1Beta3.ListSnapshotsRequest, global::Google.Cloud.Dataflow.V1Beta3.ListSnapshotsResponse>(serviceImpl.ListSnapshots));
 }