I have a repository class with optional dependency:
class MyRepository : BaseRepository, IMyRepository { public MyRepository(IDataContext dataContext, IC
In the .RegisterType() call, specify the InjectionConstructor with an OptionalParameter, as in
.RegisterType()
.RegisterType(new InjectionConstructor( new ResolvedParameter(), new OptionalParameter()));