Published
Jul 31, 2026
2mo ago
Total Downloads
9.3K
9,323
Install
dotnet add package Senparc.Xncf.Dapr --version 0.11.2-preview4
| Product | Versions |
|---|---|
| .NET |
README
Senparc.Xncf.Dapr
Senparc.Xncf.Dapr provides an NCF-friendly client abstraction for Dapr service invocation, pub/sub, state management, and health checks.
Features
- Invokes Dapr services with GET, POST, PUT, PATCH, and DELETE semantics.
- Publishes events through a configured pub/sub component.
- Reads, writes, and deletes Dapr state values.
- Provides serializer abstractions and tolerant JSON converters for common scalar types.
- Registers as an XNCF module and uses
DaprClientOptionsfor sidecar/component settings.
Installation
<PackageReference Include="Senparc.Xncf.Dapr" Version="0.26.0-preview3" />
Key API
DaprClientServiceCollectionExtensions.AddDaprClient(...)registers the client and optionalDaprClientOptionsconfiguration.DaprClient.InvokeMethodAsync<TResult>(...)is the generic service-invocation entry point;GetAsync,PostAsync,PutAsync,PatchAsync, andDeleteAsyncare convenience methods.PublishEventAsync(...)publishes an event to a configured topic.SetStatesAsync(...)andDelStateAsync(...)manage state;HealthCheckAsync()checks the Dapr path.ISerializerandTextJsonConverterdefine serialization behavior.
Run and secure the Dapr sidecar separately. Configure service IDs, component names, timeouts, network policy, and authentication in the deployment environment; do not treat a reachable sidecar as an authorization boundary.
Changes from Previous Version
No structural changes between v0.11.1-preview3 and v0.11.2-preview4.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.