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
hi,
i have a base controller and i dont want to use constructor injection so i tried below but it does not resolve the property, and yes i have IAsyncDocumentSession registered with Autofac and it works using constructor injection
builder.Register(c => new BaseController()).OnActivated(e =>
{
e.Instance.dbSession= e.Context.Resolve<IAsyncDocumentSession>();
});
hi,
i have a base controller and i dont want to use constructor injection so i tried below but it does not resolve the property, and yes i have
IAsyncDocumentSession
registered with Autofac and it works using constructor injectionor this
thanks in advanced.
The text was updated successfully, but these errors were encountered: