Arc4u.Dependency 9.1.0

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

Arc4u.Dependency

Attributes ([Export], [Shared], [Scoped]) that declare how a class is registered in the .NET dependency injection container, and TryGetService helpers on IServiceProvider.

Install

dotnet add package Arc4u.Dependency
dotnet add package Arc4u.Dependency.Tool

Usage

// Program.cs of the project Contoso.Api
using Arc4u.Dependency;           // generated RegisterApiTypes
using Arc4u.Dependency.Attribute; // Export, Shared, Scoped

var builder = WebApplication.CreateBuilder(args);
builder.Services.RegisterApiTypes();

[Export(typeof(IClock)), Shared] // singleton; [Scoped] for scoped, neither for transient
public class SystemClock : IClock { public DateTime UtcNow => DateTime.UtcNow; }

RegisterApiTypes is generated at build time by Arc4u.Dependency.Tool from the [Export] classes of the project; its name comes from the last segment of the assembly name.

Documentation

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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 was computed.  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 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.  net11.0 is compatible. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (10)

Showing the top 5 NuGet packages that depend on Arc4u.Dependency:

Package Downloads
Arc4u.Configuration

Package Description

Arc4u

Package Description

Arc4u.Caching

Package Description

Arc4u.gRPC

Package Description

Arc4u.Caching.Memory

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
9.1.0 422 11/18/2026
9.0.0 388 11/10/2026
9.0.0-preview46 230 11/3/2026
9.0.0-preview45 224 11/2/2026
9.0.0-preview44 200 11/1/2026
9.0.0-preview43 192 11/1/2026
9.0.0-preview42 217 10/30/2026
9.0.0-preview41 216 10/30/2026
9.0.0-preview40 212 10/27/2026
9.0.0-preview39 203 10/24/2026
9.0.0-preview38 248 10/22/2026
9.0.0-preview37 982 8/11/2026
9.0.0-preview36 848 7/28/2026
9.0.0-preview35 508 7/27/2026
9.0.0-preview34 520 7/27/2026
9.0.0-preview33 547 6/15/2026
9.0.0-preview32 519 6/14/2026
9.0.0-preview31 520 5/20/2026
9.0.0-preview30 512 5/19/2026
9.0.0-preview29 542 5/15/2026
Loading failed