Closed chunming-lu closed 2 months ago
func OverrideTransient[T any](i Injector, provider Provider[T]) { name := inferServiceName[T]() OverrideNamed[T](i, name, provider) }
Then the instances when calling Invoke multiple times are always identical.
Invoke
Thanks for the feedback. I just made a fix.
Then the instances when calling
Invoke
multiple times are always identical.