dotnet-grpc

Define .proto contracts, generate C# stubs, and host ASP.NET Core gRPC services.

Updated Aug 16, 2025
One-click install
npx skills add https://github.com/dodyg/blue-nile-pds --skill dotnet-grpc-dodyg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-grpc
Source: https://github.com/dodyg/blue-nile-pds/tree/main/.agents/skills/dotnet-grpc
Command: npx skills add https://github.com/dodyg/blue-nile-pds --skill dotnet-grpc-dodyg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Full gRPC lifecycle support for .NET applications: proto definition, code-gen, server hosting, client usage, streaming patterns, and authentication.

Core Features & Use Cases

  • Proto service definition and code generation
  • ASP.NET Core gRPC server implementation and endpoint hosting
  • Grpc.Net.Client client patterns
  • All four streaming patterns (unary, server streaming, client streaming, bidirectional)
  • Authentication, load balancing, and health checks

Quick Start

Create a new ASP.NET Core gRPC project, add a proto file, generate code, implement server methods, and start hosting the service.

Frequently Asked Questions about dotnet-grpc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a gRPC service in .NET from a proto file?

To build a .NET gRPC service, you define .proto contracts, generate C# stubs using Grpc.Tools, implement server logic, and host the ASP.NET Core service using proper dependency injection.

Does .NET gRPC support server streaming and bidirectional streaming?

Yes, .NET gRPC supports all four streaming patterns: unary, server streaming, client streaming, and bidirectional streaming, allowing real-time data flow between Grpc.Net.Client and ASP.NET Core servers.

How do I add authentication and load balancing to a gRPC server in C#?

You can implement authentication and load balancing for a C# gRPC server by configuring Grpc.AspNetCore and Grpc.Net.Client within your ASP.NET Core dependency injection hosting to produce working authenticated endpoints.

What packages do I need to host an ASP.NET Core gRPC service?

Hosting an ASP.NET Core gRPC service requires the Grpc.AspNetCore and Grpc.Tools packages to generate C# stubs from Protobuf definitions and properly host the gRPC endpoints.

Can I implement health checks for my .NET gRPC client and server?

Yes, you can implement health checks across both server and client gRPC projects in .NET, ensuring endpoint availability and proper routing within your ASP.NET Core hosting environment.

What is the best way to structure a full .NET gRPC application?

The best way to structure a full .NET gRPC application is to separate server and client projects, define Protobuf contracts centrally, generate C# stubs, and configure Grpc.Net.Client patterns for communication.