Arc4u.Dependency 9.0.0

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

Package Description

Arc4u.gRPC

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
9.0.0 271 11/10/2026
9.0.0-preview46 220 11/3/2026
9.0.0-preview45 214 11/2/2026
9.0.0-preview44 191 11/1/2026
9.0.0-preview43 182 11/1/2026
9.0.0-preview42 208 10/30/2026
9.0.0-preview41 203 10/30/2026
9.0.0-preview40 203 10/27/2026
9.0.0-preview39 192 10/24/2026
9.0.0-preview38 228 10/22/2026
9.0.0-preview37 885 8/11/2026
9.0.0-preview36 745 7/28/2026
9.0.0-preview35 412 7/27/2026
9.0.0-preview34 426 7/27/2026
9.0.0-preview33 452 6/15/2026
9.0.0-preview32 421 6/14/2026
9.0.0-preview31 426 5/20/2026
9.0.0-preview30 420 5/19/2026
9.0.0-preview29 442 5/15/2026
9.0.0-preview28 426 5/15/2026
Loading failed