如果我有这样的主持人——
public class LandingPresenter : ILandingPresenter
{
private ILandingView _view { get; set; }
private IProductService _productService { get; set; }
public LandingPresenter(ILandingView view, IProductService)
{
....
}
}
考虑到不会注册依赖视图(但 IProductService 会),我如何使用 Autofac 注册此 Presenter
builder.RegisterType<LandingPresenter>().As<ILandingPresenter>(); ????