netfx-System.AmbientSingleton
1.2.1
dotnet add package netfx-System.AmbientSingleton --version 1.2.1
NuGet\Install-Package netfx-System.AmbientSingleton -Version 1.2.1
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="netfx-System.AmbientSingleton" Version="1.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add netfx-System.AmbientSingleton --version 1.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: netfx-System.AmbientSingleton, 1.2.1"
#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 netfx-System.AmbientSingleton as a Cake Addin #addin nuget:?package=netfx-System.AmbientSingleton&version=1.2.1 // Install netfx-System.AmbientSingleton as a Cake Tool #tool nuget:?package=netfx-System.AmbientSingleton&version=1.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Provides an easy way to implement the singleton (anti?) pattern so that it is ambient-safe, propagates with a call context and can be overriden per ambient (i.e. in tests).
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
- netfx-Guard (>= 1.3.0)
GitHub repositories
This package is not used by any popular GitHub repositories.
v1.2.1
* Changed to use CallContext.SetData/GetData instead of forcing LogicalSetData/GetData.
this allows the default behavior of only remoting across AppDomain/process boundaries
the actual values that implement ILogicalThreadAffinative.