示例#1
0
 public static global::Grpc.Core.ServerServiceDefinition BindService(WorkflowServiceBase serviceImpl)
 {
     return(global::Grpc.Core.ServerServiceDefinition.CreateBuilder()
            .AddMethod(Method_AddModule, serviceImpl.AddModule)
            .AddMethod(Method_GetModule, serviceImpl.GetModule)
            .AddMethod(Method_AddExperiment, serviceImpl.AddExperiment)
            .AddMethod(Method_GetExperiment, serviceImpl.GetExperiment)
            .Build());
 }
示例#2
0
 /// <summary>Creates service definition that can be registered with a server</summary>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static grpc::ServerServiceDefinition BindService(WorkflowServiceBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_Fun, serviceImpl.Fun).Build());
 }