Concierge.Platform.WriteClient
1.0.2
dotnet add package Concierge.Platform.WriteClient --version 1.0.2
NuGet\Install-Package Concierge.Platform.WriteClient -Version 1.0.2
<PackageReference Include="Concierge.Platform.WriteClient" Version="1.0.2" />
<PackageVersion Include="Concierge.Platform.WriteClient" Version="1.0.2" />
<PackageReference Include="Concierge.Platform.WriteClient" />
paket add Concierge.Platform.WriteClient --version 1.0.2
#r "nuget: Concierge.Platform.WriteClient, 1.0.2"
#:package Concierge.Platform.WriteClient@1.0.2
#addin nuget:?package=Concierge.Platform.WriteClient&version=1.0.2
#tool nuget:?package=Concierge.Platform.WriteClient&version=1.0.2
Concierge.Platform.WriteClient
Peer-signed HTTP client for creating and mutating org nodes on PlatformService. Use this from
mall-admin (or any other service) when synchronous, actionable failure handling is required — the
write-direction counterpart to Thiso.Sync.Client's read-direction reconciliation client.
See docs/contracts/platform-write-client-sdk.md for the full contract.
Registration
services.AddConciergePlatformWriteClient(options =>
{
options.PlatformBaseUrl = new Uri(configuration["Platform:BaseUrl"]!.TrimEnd('/'));
options.PeerSigning(signing =>
{
signing.ClientKey = configuration["Concierge:AuthClient:PeerSignatureSigning:ClientKey"]!;
signing.PrivateKeyPem = configuration["Concierge:AuthClient:PeerSignatureSigning:PrivateKeyPem"]!;
});
});
Usage
public sealed class OrgProvisioner(IPlatformOrgNodeWriteClient writer)
{
public async Task ProvisionSiteAsync(CancellationToken cancellationToken)
{
var id = Guid.NewGuid();
var response = await writer.CreateNodeAsync(
new CreateOrgNodeRequest(
id,
"site",
parentId: Guid.Parse("…"),
isTenant: false,
code: "MALL-1",
name: new LocalizedNameDto("Trung tâm A", "Mall A"),
siteTypeId: 1),
idempotencyKey: Guid.NewGuid(),
cancellationToken);
await writer.RenameNodeAsync(
id,
new RenameOrgNodeRequest(new LocalizedNameDto("Tên mới"), response.StructureVersion),
cancellationToken: cancellationToken);
}
}
Every write sends an Idempotency-Key header (caller-supplied or auto-generated). Version conflicts
surface as OrgNodeVersionConflictException with CurrentVersion populated when the server includes it.
| 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
- Concierge.Auth.Client.PeerSignature (>= 1.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Http (>= 10.0.11)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.11)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.