A modern C# client library for Obstor and S3-compatible object storage services.
- .NET 8.0, 9.0, or 10.0
- A Obstor or S3-compatible server
var client = new ObstorClientBuilder("https://obstor.example.com")
.WithStaticCredentials("accessKey", "secretKey")
.Build();services
.AddObstor("http://localhost:9000")
.WithStaticCredentials("obstoradmin", "obstoradmin");Two example projects are included:
Obstor.Examples.Simple/— minimal console app using the direct builderObstor.Examples.Host/— DI-based example usingIHost, demonstrating bucket creation, object upload/download, listing, and bucket notifications
To run an example, start a local Obstor instance first:
docker run --rm -p 9000:9000 ghcr.io/obstor/obstor:latest server /dataThen:
dotnet run --project Obstor.Examples.Simple
# or
dotnet run --project Obstor.Examples.Host