79078074

Date: 2024-10-11 11:48:08
Score: 1
Natty:
Report link

To expand on the accepted answer by Miljac:

If you're using Autofac as your dependency resolver, you need to register your View as a Named service (see docs), e.g.

builder.RegisterType<MyView>()
.As<IViewFor<MyViewModel>>()
.Named<IViewFor<MyViewModel>>("ViewWithContract");
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: lipharDYT