From the course: Learning ASP.NET Core: MVC, Razor Pages, Web APIs & Other Foundations
Unlock this course with a free trial
Join today to access over 24,800 courses taught by industry experts.
Solution: Create a gRPC service
From the course: Learning ASP.NET Core: MVC, Razor Pages, Web APIs & Other Foundations
Solution: Create a gRPC service
(upbeat music) - [Instructor] I will now show you how I solve the challenge. Just as a reminder, your solution doesn't have to look exactly like mine to be correct. This is just one way to solve it. I'll start by creating a new GRPC application using the .NET CLI. The command I'll use is dotnet new grpc. I'll add the -o option to put the project in a directory named grpc-challenge. I'll now change to the new directory and open it in VS Code. The first thing I need to add to the project is a new proto file. As you've already seen, the project template comes with a default proto file named greet.proto. If you were creating a production application, you would probably want to remove that file and the related service implementation. However, I would probably only do that after you get at least one other proto file added to your project because keeping the sample in place as a syntax reference can be very helpful. I'm just going to leave this one for now and add a new one named…