예제 #1
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(LookupServiceBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_BbL, serviceImpl.BbL)
            .AddMethod(__Method_KdtL, serviceImpl.KdtL)
            .AddMethod(__Method_KftL, serviceImpl.KftL)
            .AddMethod(__Method_KptL, serviceImpl.KptL)
            .AddMethod(__Method_NntL, serviceImpl.NntL)
            .AddMethod(__Method_AhpL, serviceImpl.AhpL)
            .AddMethod(__Method_AvkL, serviceImpl.AvkL)
            .AddMethod(__Method_AbkL, serviceImpl.AbkL)
            .AddMethod(__Method_XgtL, serviceImpl.XgtL).Build());
 }
 public static void BindService(grpc::ServiceBinderBase serviceBinder, LookupServiceBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_ResolveService, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.ServiceDirectory.V1.ResolveServiceRequest, global::Google.Cloud.ServiceDirectory.V1.ResolveServiceResponse>(serviceImpl.ResolveService));
 }
 public static grpc::ServerServiceDefinition BindService(LookupServiceBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_ResolveService, serviceImpl.ResolveService).Build());
 }