You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Transitional behaviour works currently by redirecting GetService requests in accordance with the registered Transitions.
However, if you request a consumer of the transitional, a transitional will not be injected!
publicinterfaceIFoo{}publicclassFoo:IFoo{}publicclassBar{publicBar(IFoofoo){// this is a normal foo, that cannot be transitioned!!}}
services.AddTransient<IFoo,Foo>().AsTransitional();
services.AddTransient<Bar,Bar>();varbar= app.GetService<Bar>();// bar will contain an untransitional Bar
The text was updated successfully, but these errors were encountered:
Can't believe this didn't surface yet!
Transitional behaviour works currently by redirecting
GetService
requests in accordance with the registered Transitions.However, if you request a consumer of the transitional, a transitional will not be injected!
The text was updated successfully, but these errors were encountered: