Registrator.Net 1.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Registrator.Net --version 1.1.0                
NuGet\Install-Package Registrator.Net -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="Registrator.Net" Version="1.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Registrator.Net --version 1.1.0                
#r "nuget: Registrator.Net, 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 Registrator.Net as a Cake Addin
#addin nuget:?package=Registrator.Net&version=1.1.0

// Install Registrator.Net as a Cake Tool
#tool nuget:?package=Registrator.Net&version=1.1.0                

N|Solid

Registrator.Net

A simple yet effective AutoRegistration tool for dotnet

NuGet Info GitHub license

Build Status

.Net8.0

Build history

Table of contents

Notes

Doesn't support automatic registration of generic types, you will have to register them manually.

About

Registrator.Net is a simple AutoRegistration tool for dotnet.

I have been trying to find a simple tool to register my internal dependencies and didn't find any that I liked, so I decided to create my own.

Who is it for?

Registrator.Net is intended for developers who want something simple that just works.

It is not designed to deal with every case, but the simple ones, the ones you will be doing 99% of the time.

Getting Started

With Contracts implementation

Install-Package Registrator.Net

Tag classes, records and structs with any of the following attributes:

  • AutoRegisterType
  • AutoRegisterTypeAndInterfaces
  • AutoRegisterInterfaces

Then in your Program.cs or Startup.cs, call services.AutoRegisterTypesInAssemblies(assembly1,assembly2,assembly3...);

By default all registered types are registered as ServiceLifetime.Scoped, but you can change it by passing a ServiceLifetime as a parameter of the attribute.

License

MIT

Logo Provided by Vecteezy

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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen 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

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
3.0.0 1,862 9/21/2024
2.0.0 606 9/1/2024
1.1.1 2,744 4/7/2024
1.1.0 108 4/7/2024
1.0.0 129 4/6/2024