OutWit.Shared.Storage.Providers 1.0.0

dotnet add package OutWit.Shared.Storage.Providers --version 1.0.0
                    
NuGet\Install-Package OutWit.Shared.Storage.Providers -Version 1.0.0
                    
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="OutWit.Shared.Storage.Providers" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OutWit.Shared.Storage.Providers" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="OutWit.Shared.Storage.Providers" />
                    
Project file
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 OutWit.Shared.Storage.Providers --version 1.0.0
                    
#r "nuget: OutWit.Shared.Storage.Providers, 1.0.0"
                    
#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 OutWit.Shared.Storage.Providers@1.0.0
                    
#: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=OutWit.Shared.Storage.Providers&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=OutWit.Shared.Storage.Providers&version=1.0.0
                    
Install as a Cake Tool

OutWit.Shared.Storage.Providers

Blob-storage abstractions for OutWit hosts. Defines a low-level IBlobStorageProvider (Write / Append / Read / ReadChunk / Delete / Exists / GetSize by Guid + filename), the IBlobStorageProviderPlugin plugin contract (a marker over IWitPlugin so transports load via WitPluginLoader), the IBlobStorageSettings configuration contract, and MemoryPack-friendly BlobInfo / BlobUploadSession models.

This is the contract package — install one of the provider plugins to get an actual transport:

Install

dotnet add package OutWit.Shared.Storage.Providers
# plus at least one provider plugin
dotnet add package OutWit.Shared.Storage.Provider.Disk

Wire up

public sealed class MyStorageSettings : IBlobStorageSettings
{
    public string ProviderKey { get; set; } = "Disk";
    public string PluginsPath { get; set; } = "@Storage";
    public long MaxBlobSize { get; set; } = 5L * 1024 * 1024 * 1024; // 5 GB
    public int ChunkSize { get; set; } = 4 * 1024 * 1024;            // 4 MB
    public long ChunkedTransferThresholdBytes { get; set; } = 16 * 1024 * 1024;
    public int DefaultTtlMinutes { get; set; } = 60 * 24 * 7;        // 7 days
    public int CleanupIntervalMinutes { get; set; } = 15;
    public int UploadSessionTimeoutMinutes { get; set; } = 30;
}

services.AddBlobStorage(new MyStorageSettings(), environment);

// later, inside any service:
public class MyService
{
    private readonly IBlobStorageProvider m_storage;
    public MyService(IBlobStorageProvider storage) => m_storage = storage;

    public async Task UploadAsync(byte[] data)
    {
        var blobId = Guid.NewGuid();
        await using var s = new MemoryStream(data);
        await m_storage.WriteAsync(blobId, "data.bin", s);
    }
}

AddBlobStorage loads every plugin under PluginsPath (defaults to @Storage next to the executable), picks the one whose Key matches Settings.ProviderKey, and registers its IBlobStorageProvider in DI.

API

Type Purpose
IBlobStorageProvider Low-level Write / Read / Delete / Exists / GetSize
IBlobStorageProviderPlugin : IWitPlugin Plugin contract that the host's WitPluginLoader<T> discovers
IBlobStorageSettings Required configuration (provider key + chunking + TTL + sessions)
BlobInfo [MemoryPackable] model — Id, FileName, Size, CreatedAtUtc, ExpiresAtUtc?
BlobUploadSession DTO for chunked-upload session state
StorageUtils.AddBlobStorage DI entry point

License

Licensed under the Apache License, Version 2.0. See LICENSE.txt.

Trademark / Project name

"OutWit" and the OutWit logo are used to identify the official project by Dmitry Ratner. You may refer to the project name in a factual way; you may not use the name or logo to imply official endorsement of a fork or derived product.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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 is compatible.  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 is compatible.  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.

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.0 38 5/20/2026