public HostedService( ILogger <HostedService> logger, JlionOrderServiceBase grpcService) { _logger = logger; _grpcServImpl = grpcService; }
/// <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(JlionOrderServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_Order_Search, serviceImpl.Order_Search).Build()); }