14 lines
339 B
C#
14 lines
339 B
C#
using Grpc.Core;
|
|
|
|
namespace GrcpServices;
|
|
|
|
// <snippet_GreeterService>
|
|
public class GreeterService : GreeterBase
|
|
{
|
|
public override Task<HelloReply> SayHello(HelloRequest request, ServerCallContext context)
|
|
{
|
|
return Task.FromResult(new HelloReply { Message = $"Hello {request.Name}" });
|
|
}
|
|
}
|
|
// </snippet_GreeterService>
|