Created
March 24, 2022 15:38
-
-
Save mortezadalil/266908e68d2b48e4350dde8a5836a3b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Discount.Api.Grpc; | |
using Grpc.Core; | |
namespace Discount.Api.GrpcService.Server | |
{ | |
public class GreeterService : Greeter.GreeterBase | |
{ | |
public GreeterService() | |
{ | |
} | |
public override Task<HelloReply> SayHello(HelloRequest request, ServerCallContext context) | |
{ | |
return Task.FromResult(new HelloReply | |
{ | |
Message = "Hello Response" | |
}); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment