-
This sample shows a simple request/response gRPC call.
-
Server Streaming - Message Server
This sample shows how to do simple gRPC sever streaming.
-
Client Streaming - Fortune Cookie Server
This sample shows how to do simple gRPC client streaming.
-
Bidirectional Streaming - Forever Ping Pong
This sample shows how to do simple gRPC client/server bidirectional streaming.
-
Data format - string, enum and datetime
This sample shows how to define Protocol Buffers format to support sending enum, string and datetime.
-
Data format - nested types and repeated values (list)
This sample shows how to define Protocol Buffers format to support sending nested types and repeated values (list).
-
Data format - map values (dictionary)
This sample shows how to define Protocol Buffers format to support sending map values (dictionary).
-
This sample demonstrates how to use
oneof
type to allow you to check whether the value of a property is set or not, essentialy emulating nullable type. -
Server Streaming - Kitty Server
This sample shows how to stream an image in chunks from server to client.
This is a version of gRPC that runs on HTTP 1.1 and support Unary call and Server Streaming. Client Streaming and bi-Directional Streaming are not supported.
gRPC-Web has been released. You can find the details here.
-
This sample shows a simple request/response gRPC call.
-
Server Streaming - Message Server
This sample shows how to do simple gRPC sever streaming.
-
Server Streaming - Message Server - Blazor Web Assembly
This sample shows how to do simple gRPC sever streaming with Blazor Web Assembly client.
-
This sample shows how to make a GET HTTP call to a gRPC endpoint via gRPC JSON transcoding.
-
This sample shows how to make a POST HTTP call to a gRPC endpoint via gRPC JSON transcoding.
-
This sample shows how to make a POST HTTP call to a gRPC endpoint via gRPC JSON transcoding by combining route parameter and body.
-
This sample shows how to make a PUT HTTP call to a gRPC endpoint via gRPC JSON transcoding.
-
This sample shows how to make a PATCH HTTP call to a gRPC endpoint via gRPC JSON transcoding.
dotnet8