Themis.Inference.Remote.Rpc
4.2.0
See the version list below for details.
dotnet add package Themis.Inference.Remote.Rpc --version 4.2.0
NuGet\Install-Package Themis.Inference.Remote.Rpc -Version 4.2.0
<PackageReference Include="Themis.Inference.Remote.Rpc" Version="4.2.0" />
<PackageVersion Include="Themis.Inference.Remote.Rpc" Version="4.2.0" />
<PackageReference Include="Themis.Inference.Remote.Rpc" />
paket add Themis.Inference.Remote.Rpc --version 4.2.0
#r "nuget: Themis.Inference.Remote.Rpc, 4.2.0"
#:package Themis.Inference.Remote.Rpc@4.2.0
#addin nuget:?package=Themis.Inference.Remote.Rpc&version=4.2.0
#tool nuget:?package=Themis.Inference.Remote.Rpc&version=4.2.0
Themis.Inference.Remote.Rpc
Themis.Inference.Remote.Rpc connects service-specific RPC clients to Themis'
IDecisionInferenceProvider contract. It provides the routed provider,
cancellation forwarding, end-to-end latency measurement, and lifecycle
logging. The host supplies an IRemoteDecisionRpcProtocol that invokes its RPC
client and maps the service contract to and from typed Themis decisions.
The package intentionally has no dependency on gRPC, a generated client, or an RPC wire format. RPC frameworks differ in their method descriptors, generated message types, metadata, deadlines, retry policies, and status exceptions. The protocol adapter owns those details, uses the caller cancellation token, and preserves transport exceptions. Register the framework's client and any authentication, retry, and deadline policy in the host's dependency-injection container.
Registration
Implement IRemoteDecisionRpcProtocol using the RPC client of choice, then
register the provider with the shared decision router:
using Themis.Core;
using Themis.Core.Extensions;
using Themis.Inference.Remote.Rpc;
services.AddThemisRemoteRpcDecisionInference<MyDecisionRpcProtocol>();
services.AddThemisDecisionRouter(new DecisionRouterOptions("model-v1")
{
RouteUnspecifiedRequestsToDefaultModel = true
});
The protocol is registered as a transient service and can resolve a host- registered RPC client from dependency injection. Use the keyed registration overload when a host needs multiple RPC clients or protocols:
services.AddThemisRemoteRpcDecisionInference<MySecondaryDecisionRpcProtocol>("secondary");
The module forwards cancellation, records end-to-end latency in
DecisionUsage, and logs request completion or failure without logging
decision content. Protocol and provider exceptions propagate unchanged;
cancellation is not logged as an inference failure. The module does not define
generic metadata, deadline, retry, authentication, or status-code policy.
The test suite includes a generated-client gRPC example backed by ASP.NET
Core's in-process TestServer. Its gRPC packages are test-only and are not
dependencies of this transport-neutral package.
| Product | Versions 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. |
-
net10.0
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.13)
- Themis.Common (>= 4.2.0)
- Themis.Core (>= 4.2.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Themis.Inference.Remote.Rpc:
| Package | Downloads |
|---|---|
|
Themis.Inference.Remote.Grpc
Configurable gRPC client and server integration for Themis decision inference. |
GitHub repositories
This package is not used by any popular GitHub repositories.