有谁知道如何将其转换为Autofac语法?
private static IElementGenerator<T> GetGenerator<T>(T model) where T : class
{
var library = StructuremapMvc.ParentScope.CurrentNestedContainer.GetInstance<HtmlConventionLibrary>();
return ElementGenerator<T>.For(library, t => StructuremapMvc.ParentScope.CurrentNestedContainer.GetInstance(t), model);
}
以下是代码的链接