.NET SDK Change Log
All notable changes to this project will be documented in this file.
[4.0.0] - 2026-10-14
Changed
GetDeploymentAsyncnow matches the renamed catalogue keys:DeploymentModel.Imagesis nowArtifacts(wireartifacts), andDeploymentImage,DeploymentImageTopicsandDeploymentImageConfigurationare nowDeploymentArtifact,DeploymentArtifactTopicsandDeploymentArtifactConfiguration.DeploymentArtifact.ArtifactId(wireartifact_id) replacesImageId.
Removed
DeploymentImage.DeploymentImageId. The backend no longer returnsdeployment_image_id; useDeploymentInstanceId.PipelineCommands.StatusGet, deprecated in 3.0.0; usePipelineCommands.RunStatus.
[3.0.0] - 2026-09-28
Added
PipelineCommands.DeploymentStatus,ArtifactGetandRunStatus.ClientOptions.Logger: optionalILoggerfor SDK warnings (addsMicrosoft.Extensions.Logging.Abstractions8.0.3).
Changed
ConnectorRecord.Offsetis nowlong?instead ofint?, so offsets aboveint.MaxValueno longer fail deserialization.DeploymentStorage.StorageTypeandDatabaseTypeare now theStorageTypeandDatabaseTypeenums instead of strings. Unrecognised values deserialize asUnknown.
Deprecated
PipelineCommands.StatusGet, now an alias ofRunStatus(the broker renamedpipeline.status.gettopipeline.run.status); useRunStatus.IAppService.PublishAsync,SubscribeAsyncandFlushAsync; useclient.Connectorinstead. They now call the connector service, so they requireConnectorBaseUrl,ConnectorSecretand mTLS settings, and log a warning on first use. Return types are unchanged, but subscribe now returns one connector page per call instead of every waiting record.
Removed
IAppService.ControlAsyncandGetStreamUrlAsync, withControlParams,GetStreamUrlParamsandStreamUrlData.GetStreamUrlAsync's endpoint never existed;ControlAsynchad no deployed consumer.
[2.8.1] - 2026-09-16
Changed
- App and pipeline requests are now signed by default:
RequireSigningdefaults totrueon all nineModels/Apps/*Paramsrecords and onExecuteParams. The controller rejects unsigned App requests, so the previousfalsedefault produced requests that could not succeed; callers already settingRequireSigning = trueare unaffected. SetRequireSigning = falseto suppress the HMAC headers and exercise the rejection path. Signing requiresClientId/ClientSecret, so a client configured without them now throwsCareflowInvalidDataExceptionwhen the request is built rather than being rejected by the broker. Matches the same change in the Python SDK.
[2.8.0] - 2026-09-14
Added
client.Pipeline(IPipelineService/PipelineService) — a command-dispatch namespace alongsideAppandConnector.ExecuteAsync(new ExecuteParams { Command, Parameters, RequireSigning })posts toPOST /api/v1/pipeline, reusing App HMAC authentication (opt-in viaRequireSigning, matchingclient.App). There is no per-command response model, so commands the broker adds later work without an SDK release.PipelineCommandslists the commands known today (DeploymentGet,DeploymentList,StatusGet,RunStart,RunStop) for autocomplete only —Commandaccepts any non-empty string.
Fixed
ConnectorSubscribeResult.DataSetMeta(andFlushAsync's result) is no longer null for multi-word fields.SubscribeAsync/FlushAsynchit the Java-based data-connector service, which returns camelCase fields (dataSetMeta,dataType,createdTime,lastModifiedTime), but the SDK previously deserialized every response with the shared snake_case naming policy, so these fields never matched and silently bound to null. These two calls now deserialize with camelCase naming instead; single-word fields (Records,Total) are unaffected.
[2.7.0] - 2026-09-09
Fixed
IStreamingService.ConnectAsyncnow correctly preserves a subpath segment inCAREFLOW_SDK_WS_GATEWAY_BASE_URL(e.g.wss://host/wsgateway) when building the WebSocket connection URL. Previously, the path was replaced outright rather than appended to, so the connection always dropped any subpath and went to<scheme>://<host>/wsregardless of what was configured. Bare-host base URLs (no path segment) are unaffected.
[2.6.0] - 2026-08-31
Added
DeploymentImage.Storages—GetDeploymentAsyncnow returns aDeploymentStorage[]?per image, exposing storage/database provisioning metadata (Label,StorageType,DatabaseType,Size,Provider,Version,InstanceType,RootDiskSize,ShareKey,IsPrimaryShare).
Fixed
- Request URLs and HMAC signing now correctly preserve a subpath segment in
AppBaseUrl/ConnectorBaseUrl(e.g.https://host/controller). Previously, a leading-slash relative route was treated as an absolute path and silently dropped the base URL's path segment, and the signing canonical string always used the raw route instead of the actual combined path — both broke authentication against any subpath-mounted deployment. Bare-host base URLs (no path segment) are unaffected.
[2.5.0] - 2026-07-14
Changed
- Bumped
Careflow.WsGatewaydependency to1.2.0. Streaming reconnection now survives unexpected errors (malformed messages, invalid auth responses, transport-level IO errors) instead of terminating the stream — errors are reported viaConnectOptions.OnErrorand retried per the reconnect policy. A single malformed message is skipped rather than dropping the connection. - Idle streaming connections now send WebSocket keep-alive frames (
ConnectOptions.KeepAliveInterval, default 15 seconds) so dead connections are detected and reconnected instead of hanging, complementing the gateway's server-side ping/pong liveness checks. WsInvalidTopicExceptionis now always terminal, including when reconnecting with a session token.
[2.4.0] - 2026-06-24
Added
- Streaming now supports skipping the backlog: set
ConnectParams.SeekToLatest = trueonIStreamingService.ConnectAsyncto receive only data published after the connection is established (the gateway seeks the consumer to the latest offset on assignment). Defaults tofalse(existing replay behavior).
Changed
- Bumped
Careflow.WsGatewaydependency to1.1.0(addsConnectParams.SeekToLatest).
Fixed
WithOptionsno longer creates a brand-newHttpClientfor each copy when none was injected. Copies now reuse the original client's internalHttpClient— matching the behavior when one is injected — preventing socket/handler exhaustion from repeatedWithOptionscalls. A copy still gets its own client if it injects one or changes a TLS/certificate option (VerifySsl,Cert,Key,CaBundlePath).
[2.3.0] - 2026-06-18
Added
CareflowMissingProjectException— thrown byRequestPatientsAsyncwhen no project is assigned to the app (serverresponseStatus.code611,_MISSING_PROJECT).CareflowMissingPatientListException— thrown byRequestPatientsAsyncwhen a project is assigned but no patient list is configured, either because the project has no associated patient list or its patient-list topic has not been assigned (serverresponseStatus.code612,_MISSING_PATIENT_LIST).
Changed
CareflowExceptionFactorynow maps the611and612responseStatuscodes to the two exceptions above; previously these surfaced as a genericCareflowUnexpectedStatusCodeException. The controller server now returns these codes instead of a successful response withnull/empty topics, so a patient request against an unconfigured app raises a typed exception rather than returning an empty result.
[2.2.0] - 2026-06-10
Added
IConnectorService.FlushAsync— flushes a connector topic's index to the latest offset viaGET /data-stream/subscribewithseekToLatest=true; includesConnectors.FlushParams(topic + optional client secret) and reusesConnectorSubscribeResult(returns an empty result withTotalof0). Prefer this overSubscribeAsyncwhen you only need to advance the read position.IAppService.FlushAsync— App-service equivalent viaGET /api/v1/deployment/subscribewithseekToLatest=true; includesApps.FlushParams(topic, HMAC signing supported) and returnsAppSubscribeResult.Connectors.SubscribeParams.SeekToLatestandApps.SubscribeParams.SeekToLatest— optional query parameter exposing the new Subscribe API flag (defaults to omitted, i.e.false).
Changed
Apps.RequestPatientsParams.RequireSigningnow defaults tofalse, consistent with every other App parameter model (previouslytrue). Callers that relied on the implicit signing default must now setRequireSigning = trueexplicitly.
[2.1.0] - 2026-06-02
Added
IAppService.RequestPatientsAsync— triggers a patient list feed through Careflow Publisher and returns matched topics viaGET /api/v1/patients/request; includesRequestPatientsParams(HMAC signing enabled by default) andPatientsRequestResultwithPatientTopic[]
[2.0.0] - 2026-05-25
Websocket related logic has been delegated to its own package. It is included as part of the Careflow.Sdk package.
Breaking Changes
IAppService.GetPatientsAsyncand related models (PatientsData,Patient,PatientRecord,GetPatientsParams) — will come from a topic instead- WebSocket gateway functionality extracted to standalone
Careflow.WsGatewaypackage (v1.0.0) StreamParamsrenamed toConnectParams(namespace:Careflow.WsGateway)StreamOptionsrenamed toConnectOptions(namespace:Careflow.WsGateway)WsMessagemoved toCareflow.WsGateway.ModelsnamespaceWsAuthenticationException,WsInvalidTopicException,WsReconnectExhaustedExceptionmoved toCareflow.WsGateway.ExceptionsnamespaceIStreamingService.ConnectAsyncparameters now use gateway SDK types
Fixed
- Streaming reconnect backoff no longer grows unboundedly across multiple disconnect cycles — the attempt counter now resets after each successful connection
- Streaming reconnect no longer terminates permanently when a stale session token is rejected on re-authentication; the client now retries with fresh credentials
CareflowApiException.Messageno longer includes the verbose .NET exception prefix — it now returns only the API response bodyHttpResponse.Deserialize<T>now detects HTML error responses (byContent-Type: text/htmlor a<prefix) and throws a typedCareflowExceptioninstead ofCareflowInvalidDataExceptionresponseStatus.messagearrays (field validation errors) now throwCareflowValidationExceptionwith a structuredIReadOnlyList<FieldError>instead of being flattened into a single string;FieldErrorexposesParamandMessageproperties
[1.0.4] - 2026-05-13
Fixed
- Removed default value on
CAREFLOW_SDK_WS_GATEWAY_BASE_URL
[1.0.3] - 2026-05-11 (ARCHIVED)
Added
IAppService.GetPatientsAsync— retrieve the list of patients for the app viaGET /api/v1/patients; includesGetPatientsParamswithRequireSigningsupportIStreamingService— new service for WebSocket streaming, accessible viaclient.StreamingIStreamingService.ConnectAsync— real-time WebSocket streaming viaIAsyncEnumerable<WsMessage>, connecting directly to the WsGateway usingConnectorSecret; supports multiple topics in a single connectionStreamParams(withTopicsstring[]),WsMessage,StreamOptionsmodel recordsWsAuthenticationException,WsInvalidTopicException(withTopicsstring[]),WsReconnectExhaustedExceptionexceptionsPatientandPatientRecordmodels populated with full response field definitionsBooleanConverteradded toHttpResponsedeserializer to handle DB-backedTINYINT(1)fields arriving as integers rather than JSON booleans
[1.0.2] - 2026-04-23
Fixed
- Environment variables for mTLS paths now correctly treat empty or whitespace values as unset
- Added null/whitespace validation on mTLS environment variables (
CAREFLOW_SDK_CLIENT_CERT_PATH,CAREFLOW_SDK_CLIENT_KEY_PATH)
[1.0.1] - 2026-04-10
Changed
- Updated SDK
.csprojto include NuGet package metadata for publishing
[1.0.0] - 2026-04-01
Added
- Initial release
CareflowClientwith App and Connector service endpoints- mTLS support via certificate/key file paths
- HMAC-SHA256 request signing
- Pub/sub support for connector topics
- HTTP status exceptions for structured error handling