SandBottle 1.0.16
dotnet add package SandBottle --version 1.0.16
NuGet\Install-Package SandBottle -Version 1.0.16
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SandBottle" Version="1.0.16" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SandBottle" Version="1.0.16" />
<PackageReference Include="SandBottle" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SandBottle --version 1.0.16
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SandBottle, 1.0.16"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SandBottle@1.0.16
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SandBottle&version=1.0.16
#tool nuget:?package=SandBottle&version=1.0.16
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SandBottle
ASP.NET Core HTTP 遙測軟體,兩行程式碼啟用。
安裝
dotnet add package SandBottle
Step1. 註冊服務
MsSql模式
SandBottle.Set(builder.Services, options =>
{
options.Mode = StorageMode.MsSql;
options.MsSqlConnection = "Server=.;Database=SandBottle;Trusted_Connection=True;";
});
建立資料表:
CREATE TABLE [dbo].[RequestRecords]
(
[Id] INT IDENTITY(1,1) NOT NULL PRIMARY KEY,
[Method] NVARCHAR(10) NOT NULL,
[Path] NVARCHAR(500) NOT NULL,
[DurationMs] INT NOT NULL,
[StatusCode] INT NOT NULL,
[Body] NVARCHAR(MAX) NULL,
[CreatedAt] DATETIME2 NOT NULL
)
Cloud 模式
builder.Services.Set(options =>
{
options.Mode = StorageMode.Cloud;
options.CloudBaseUrl = "https://your-api.example.com";
options.CloudAccount = "your-account";
options.CloudPassword = "your-password";
options.CloudKey = "your-project-key";
});
Step2. 填滿沙瓶
// Program.cs
SandBottle.Fill(app);
系統需求
- .NET 8.0+
- ASP.NET Core 8.0+
- (選用)SQL Server 2016+(MsSql 模式)
授權
本專案採用 MIT License 授權。
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Dapper (>= 2.1.35)
- Microsoft.Data.SqlClient (>= 5.2.0)
- Microsoft.EntityFrameworkCore.SqlServer (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.16 | 113 | 3/16/2026 |
| 1.0.15 | 111 | 3/16/2026 |
| 1.0.14 | 111 | 3/2/2026 |
| 1.0.13 | 107 | 2/26/2026 |
| 1.0.12 | 119 | 2/24/2026 |
| 1.0.11 | 110 | 2/24/2026 |
| 1.0.10 | 109 | 2/24/2026 |
| 1.0.9 | 113 | 2/24/2026 |
| 1.0.8 | 119 | 2/21/2026 |
| 1.0.7 | 114 | 2/19/2026 |
| 1.0.6 | 113 | 2/19/2026 |
| 1.0.5 | 104 | 2/15/2026 |
| 1.0.4 | 102 | 2/15/2026 |
| 1.0.3 | 112 | 2/15/2026 |
| 1.0.2 | 102 | 2/15/2026 |
| 1.0.1 | 104 | 2/15/2026 |
| 1.0.0 | 101 | 2/15/2026 |