Skip to content

Releases: Moreault/AutoInject

3.0.1

30 Sep 12:21
01a8e3f
Compare
Choose a tag to compare

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

28 Sep 01:55
Compare
Choose a tag to compare
3.0.1-beta1 Pre-release
Pre-release

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

26 Sep 10:57
9f4cc47
Compare
Choose a tag to compare

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

23 Sep 16:35
Compare
Choose a tag to compare
3.0.0-beta2 Pre-release
Pre-release
Updated to .NET 8

3.0.0-beta1

23 Sep 12:10
a186159
Compare
Choose a tag to compare
3.0.0-beta1 Pre-release
Pre-release
Merge pull request #16 from Moreault/dependabot/nuget/Microsoft.Exten…

2.2.0

11 Jan 01:04
1003b96
Compare
Choose a tag to compare

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

07 Jan 17:52
Compare
Choose a tag to compare
2.2.0-beta7 Pre-release
Pre-release
Replaced script with one that only publishes on release