Table of Contents

gRPC Protocol

The Bielu.AspNetCore.AsyncApi.Extensions.Protocols.Grpc package adds support for documenting gRPC services.

Installation

dotnet add package Bielu.AspNetCore.AsyncApi.Extensions.Protocols.Grpc

Configuration

builder.Services.AddAsyncApi(options =>
{
    options.AddGrpcChannelBinding("greeter", b =>
    {
        b.Service = "Greeter";
    });

    options.AddGrpcOperationBinding("sayHello", b =>
    {
        b.Method = "SayHello";
    });
});

Bindings Reference

Binding Notable fields
GrpcServerBinding ProtocolVersion
GrpcChannelBinding Service
GrpcOperationBinding Method
GrpcMessageBinding FieldNumbers

Interactive Console

To enable the live gRPC console in Scalar, see the Scalar Consoles guide.