Convex.Shared.Grpc
1.0.2
dotnet add package Convex.Shared.Grpc --version 1.0.2
NuGet\Install-Package Convex.Shared.Grpc -Version 1.0.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Convex.Shared.Grpc" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Convex.Shared.Grpc" Version="1.0.2" />
<PackageReference Include="Convex.Shared.Grpc" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Convex.Shared.Grpc --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Convex.Shared.Grpc, 1.0.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Convex.Shared.Grpc@1.0.2
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Convex.Shared.Grpc&version=1.0.2
#tool nuget:?package=Convex.Shared.Grpc&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Convex.Shared.Grpc
A shared gRPC proto definitions package for Todo and Greeting services, designed with Clean Architecture principles.
Features
- 🏗️ Clean Architecture Ready - Domain-driven design with proper separation of concerns
- 🚀 High Performance - Optimized proto definitions for maximum efficiency
- 📦 Easy Integration - Simple NuGet package installation
- 🔧 Production Ready - Battle-tested proto definitions
Installation
dotnet add package Convex.Shared.Grpc
Services Included
Todo Service
CreateTodoItem- Create new todo itemsGetTodoItem- Retrieve todo item by IDGetAllTodoItems- Get all todo items
Greeting Service
SayHello- Generate personalized greetings
Usage
Server Implementation
using GrpcSharedProto.Todo;
using GrpcSharedProto.Greeting;
// Register services
builder.Services.AddGrpc();
// Map services
app.MapGrpcService<TodoGrpcService>();
app.MapGrpcService<GreetingGrpcService>();
Client Implementation
using GrpcSharedProto.Todo;
using GrpcSharedProto.Greeting;
// Create client
var channel = GrpcChannel.ForAddress("https://localhost:5001");
var todoClient = new TodoItem.TodoItemClient(channel);
var greetingClient = new Greeter.GreeterClient(channel);
Proto Definitions
Todo Service
service TodoItem {
rpc CreateTodoItem(CreateTodoItemRequest) returns (CreateTodoItemResponse);
rpc GetTodoItem(GetTodoItemRequest) returns (GetTodoItemResponse);
rpc GetAllTodoItems(GetAllTodoItemsRequest) returns (GetAllTodoItemsResponse);
}
Greeting Service
service Greeter {
rpc SayHello(HelloRequest) returns (HelloReply);
}
Clean Architecture Benefits
- Domain Layer - Pure business logic with proto contracts
- Application Layer - Use cases orchestrate domain and infrastructure
- Infrastructure Layer - gRPC implementation details
- Presentation Layer - API controllers and gRPC services
License
MIT License - see LICENSE file for details.
Contributing
Contributions are welcome! Please read our contributing guidelines.
Support
For support and questions, please open an issue on our GitHub repository.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- Grpc.AspNetCore (>= 2.64.0)
- Microsoft.CodeAnalysis.Analyzers (>= 3.3.4)
- SonarAnalyzer.CSharp (>= 10.15.0.120848)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release with Todo and Greeting gRPC services