@dryv/csharp-client-sdkv0.1.0
Typed .NET 10 HttpClient SDK using System.Text.Json.
dryv pack add @dryv/csharp-client-sdkusing System.Net;
using System.Text.Json;
namespace {{ pack.inputs.root_namespace }};
public sealed class ApiException : Exception
{
public ApiException(HttpStatusCode statusCode, string message, JsonElement? payload = null)
: base(message)
{
StatusCode = statusCode;
Payload = payload;
}
public HttpStatusCode StatusCode { get; }
public JsonElement? Payload { get; }
}