Skip to content

Releases: Moreault/AutoInject

4.0.0

Choose a tag to compare

@Moreault Moreault released this 18 Jul 16:09
35997b9
  • Updated to .NET 10
  • No longer uses reflection
  • AOT-Compatible and trimmable

4.0.0-beta.2

4.0.0-beta.2 Pre-release
Pre-release

Choose a tag to compare

@Moreault Moreault released this 06 Mar 02:20

4.0.0-beta.1

4.0.0-beta.1 Pre-release
Pre-release

Choose a tag to compare

@Moreault Moreault released this 05 Mar 11:59

AutoInject no longer relies on reflection or ToolBX.Relfection4Humans

Full Changelog: 3.0.1...4.0.0-beta.1

3.0.1

Choose a tag to compare

@Moreault Moreault released this 30 Sep 12:21
01a8e3f

Fixes two issues with the GetAutoInjectServices method.

  1. Services directly implementing the specified type were ironically ignored
  2. Services using the generic [AutoInject<T>] attribute were also ignored

3.0.1-beta1

3.0.1-beta1 Pre-release
Pre-release

Choose a tag to compare

@Moreault Moreault released this 28 Sep 01:55

Fixes two issues with the GetAutoInjectServices method.

  1. Services directly implementing the specified type were ironically ignored
  2. Services using the generic [AutoInject<T>] attribute were also ignored

3.0.0

Choose a tag to compare

@Moreault Moreault released this 26 Sep 10:57
9f4cc47

Breaking

  • Open generics are no longer supported ([AutoInject(Interface = typeof(YourInterface)])
    • Use generics instead ([AutoInject<YourInterface>])
  • [AutoConfig] is no longer part of this package
    • Use the ToolBX.AutoConfig package from nuget.org

3.0.0-beta2

3.0.0-beta2 Pre-release
Pre-release

Choose a tag to compare

@Moreault Moreault released this 23 Sep 16:35
Updated to .NET 8

3.0.0-beta1

3.0.0-beta1 Pre-release
Pre-release

Choose a tag to compare

@Moreault Moreault released this 23 Sep 12:10
a186159
Merge pull request #16 from Moreault/dependabot/nuget/Microsoft.Exten…

2.2.0

Choose a tag to compare

@Moreault Moreault released this 11 Jan 01:04
1003b96

What's new

  • You can now use generics with the [AutoInject<T>] attribute instead of doing [AutoInject(Interface = typeof(IYourType)]
  • There is a constructor which also takes a lifetime as parameter so you can also just write [AutoInject(ServiceLifetime.Scoped)]
  • AutoInjectOptions give you more control over how your services are injected by giving you the option of setting up a DefaultLifetime
  • AddAutoInjectServices has a new overload which specifies what Assembly to use instead of all of them

Leaving soon

  • The [AutoConfig] attribute is leaving the AutoInject package to be its own package
  • [AutoConfig] is now marked [Obsolete] and will be removed in version 3.0.0
  • Please install ToolBX.AutoConfig from nuget.org to continue to use it

2.2.0-beta7

2.2.0-beta7 Pre-release
Pre-release

Choose a tag to compare

@Moreault Moreault released this 07 Jan 17:52
Replaced script with one that only publishes on release