public static grpc::ServerServiceDefinition BindService(Controller2Base serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_RegisterDebuggee, serviceImpl.RegisterDebuggee) .AddMethod(__Method_ListActiveBreakpoints, serviceImpl.ListActiveBreakpoints) .AddMethod(__Method_UpdateActiveBreakpoint, serviceImpl.UpdateActiveBreakpoint).Build()); }
public static void BindService(grpc::ServiceBinderBase serviceBinder, Controller2Base serviceImpl) { serviceBinder.AddMethod(__Method_RegisterDebuggee, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Debugger.V2.RegisterDebuggeeRequest, global::Google.Cloud.Debugger.V2.RegisterDebuggeeResponse>(serviceImpl.RegisterDebuggee)); serviceBinder.AddMethod(__Method_ListActiveBreakpoints, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Debugger.V2.ListActiveBreakpointsRequest, global::Google.Cloud.Debugger.V2.ListActiveBreakpointsResponse>(serviceImpl.ListActiveBreakpoints)); serviceBinder.AddMethod(__Method_UpdateActiveBreakpoint, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Debugger.V2.UpdateActiveBreakpointRequest, global::Google.Cloud.Debugger.V2.UpdateActiveBreakpointResponse>(serviceImpl.UpdateActiveBreakpoint)); }