Immediate.Injections
Migrating From Other Libraries
From Injectio
[!NOTE] Immediate.Injections uses a different default registration strategy than Injectio. For a clean migration, set
[assembly: RegistrationDefaults(RegistrationStrategy = RegistrationStrategy.SelfAndImplementedInterfaces, UseProxyFactory = true)]
- The
Tagsparameter receives astring[]instead of a comma-separatedstring. Example:Tags = "foo,bar"becomesTags = ["foo", "bar"] - The
RegistrationStrategy.SelfWithInterfacesenum value changes toRegistrationStrategy.SelfAndImplementedInterfaces - The
Registrationparameter changes toRegistrationStrategy - The
Duplicateparameter becomesDuplicateStrategy - Assembly name override moves from MSBuild property to
[ImmediateAssemblyIdentifier]attribute
From AutoRegisterInject
[!NOTE] Immediate.Injections uses a different default registration strategy than Injectio. For a clean migration, set
[assembly: RegistrationDefaults(RegistrationStrategy = RegistrationStrategy.ImplementedInterfaces)].
- The
[TryRegisterXxx]attributes are removed; but the behavior is implemented using a parameter. Example:DuplicateStrategy = DuplicateStrategy.Skip