Zwedze.Aetherweave.Grpc 0.2.5

dotnet add package Zwedze.Aetherweave.Grpc --version 0.2.5
                    
NuGet\Install-Package Zwedze.Aetherweave.Grpc -Version 0.2.5
                    
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="Zwedze.Aetherweave.Grpc" Version="0.2.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Zwedze.Aetherweave.Grpc" Version="0.2.5" />
                    
Directory.Packages.props
<PackageReference Include="Zwedze.Aetherweave.Grpc" />
                    
Project file
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 Zwedze.Aetherweave.Grpc --version 0.2.5
                    
#r "nuget: Zwedze.Aetherweave.Grpc, 0.2.5"
                    
#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 Zwedze.Aetherweave.Grpc@0.2.5
                    
#: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=Zwedze.Aetherweave.Grpc&version=0.2.5
                    
Install as a Cake Addin
#tool nuget:?package=Zwedze.Aetherweave.Grpc&version=0.2.5
                    
Install as a Cake Tool

Aetherweave.Grpc

Configuration-driven gRPC client registration for Aetherweave, built on Grpc.Net.ClientFactory. This package is purely generic gRPC-client plumbing — it has no knowledge of any authentication flow, exactly like Zwedze.Aetherweave.Http is for HTTP clients.

Installation

dotnet add package Zwedze.Aetherweave.Grpc

Quick Start

1. Reference your generated gRPC client

// Generated from your .proto file, e.g. Greeter.GreeterClient

2. Configure in appsettings.json

{
  "Aetherweave": {
    "GrpcClients": {
      "GreeterService": {
        "Address": "https://greeter.example.com",
        "Timeout": "00:00:30"
      }
    }
  }
}

3. Register in Program.cs

services.AddAetherweaveGrpcClient<Greeter.GreeterClient>(configuration, "GreeterService");

4. Use in your application

public sealed class GreeterService(Greeter.GreeterClient client)
{
    public async Task<string> GreetAsync(string name, CancellationToken ct)
    {
        var reply = await client.SayHelloAsync(new HelloRequest { Name = name }, cancellationToken: ct);
        return reply.Message;
    }
}

Configuration Options

GrpcClientOptions

Property Type Default Required Description
Address string - gRPC channel address (must be absolute URI)
Timeout TimeSpan 00:00:30 Request timeout (must be > 0)

Authentication

This package carries no auth code. Because AddAetherweaveGrpcClient<TClient> returns a plain IHttpClientBuilder — the same type Grpc.Net.ClientFactory's AddGrpcClient<TClient> returns — the existing Aetherweave Security packages compose onto it directly:

services.AddAetherweaveClientCredentialsAuthentication(configuration);

services.AddAetherweaveGrpcClient<Greeter.GreeterClient>(configuration, "GreeterService")
    .WithClientCredentialsAuthentication("greeter-api");

See Zwedze.Aetherweave.Security.ClientCredentials for backend-to-backend (OAuth2 client credentials) authentication — the only auth case currently supported for gRPC clients.

Error Handling

ConfigurationNotFoundException

Thrown when the configuration section is not found:

try
{
    services.AddAetherweaveGrpcClient<Greeter.GreeterClient>(
        configuration,
        "NonExistentClient");
}
catch (ConfigurationNotFoundException ex)
{
    // Configuration section 'Aetherweave:GrpcClients:NonExistentClient' not found.
    // Ensure your appsettings.json contains the required configuration.
}
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.5 101 9/3/2026
0.2.5-pre.2 61 9/3/2026
0.2.5-pre.1 70 8/13/2026
0.2.5-extend-db-registratio... 61 8/31/2026
0.2.4 116 8/13/2026
0.2.4-pre.1 68 8/13/2026
0.2.3 94 8/6/2026
0.2.3-pre.1 69 8/6/2026
0.2.2 108 8/5/2026
0.2.2-pre.1 76 7/30/2026