Woksin.Extensions.Tenancy 1.1.0

dotnet add package Woksin.Extensions.Tenancy --version 1.1.0                
NuGet\Install-Package Woksin.Extensions.Tenancy -Version 1.1.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="Woksin.Extensions.Tenancy" Version="1.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Woksin.Extensions.Tenancy --version 1.1.0                
#r "nuget: Woksin.Extensions.Tenancy, 1.1.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.
// Install Woksin.Extensions.Tenancy as a Cake Addin
#addin nuget:?package=Woksin.Extensions.Tenancy&version=1.1.0

// Install Woksin.Extensions.Tenancy as a Cake Tool
#tool nuget:?package=Woksin.Extensions.Tenancy&version=1.1.0                

Tenancy.Extension

Here I should explain how to use this package...

Setup

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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Woksin.Extensions.Tenancy:

Package Downloads
Woksin.Extensions.Configurations.Tenancy

Package Description

Woksin.Extensions.Tenancy.AspNetCore

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0 422 3/3/2024
1.0.1 167 2/26/2024
1.0.0 148 2/26/2024

Version 1.1.0:
Added more features that makes it easier to use this package together with third party libraries and frameworks like Wolverine, Akka, etc.

Added:
- Add resolved tenant context to the HttpContext.Item dictionary and a way to easily retrieve it from the HttpContext without relying on the AsyncLocal TenantContextAccessor
- StaticTenantContextAccessor that resolves either the statically configured tenant or the 'unresolved' tenant context. This type will be used instead of the AsyncLocal TenantContextAccessor if DisableAsyncLocalTenantContext method on TenancyBuilder. This can be useful if you're only interested in using the tenant context by passing it around in messages or using the one that's added to the HttpContext. For instance using frameworks and libraries that relies on running different processes on different threads or resuming contexts (Actor frameworks, Wolverine, etc.) then it can be useful to not rely on the AsyncLocal TenantContextAccessor

Changelog:
For all release notes, see changelog (https://github.com/woksin-org/Woksin.Extensions/blob/main/Packages/DotNET/Tenancy/CHANGELOG.md)