Refine public documentation

This commit is contained in:
2026-08-16 23:58:16 +10:00
parent 464b514f5c
commit f07c08df17
15 changed files with 57 additions and 67 deletions
+3 -5
View File
@@ -44,7 +44,7 @@ internal static class DemoProgram
{
Console.Error.WriteLine(
"No API token is configured. Use user secrets or set BINARYLANE_API_TOKEN. "
+ "Run with --help for a safe setup command.");
+ "Run with --help for a setup command.");
return 2;
}
@@ -104,8 +104,7 @@ internal static class DemoProgram
}
catch (BinaryLaneApiException exception)
{
// Provider details may contain user data. Do not print Problem, headers,
// or ResponseBody in a sample application.
// The sample prints the response status and path only.
Console.Error.WriteLine(
$"BinaryLane request failed with HTTP {(int)exception.StatusCode} "
+ $"({exception.StatusCode}) at {exception.RequestUri.AbsolutePath}.");
@@ -160,8 +159,7 @@ internal static class DemoProgram
server <positive-server-id>
regions
You can also set BINARYLANE_API_TOKEN for one process. Never commit
a token or add it to appsettings.json.
You can also set BINARYLANE_API_TOKEN for one process.
""");
}
}
+1 -2
View File
@@ -13,8 +13,7 @@ dotnet user-secrets set \
--project examples/BinaryLane.Api.Demo
```
Alternatively, set `BINARYLANE_API_TOKEN` for one process. Do not add a token
to `appsettings.json`.
Alternatively, start the process with `BINARYLANE_API_TOKEN` set.
## Run it