Autofac?
TDK1964 opened this issue · 4 comments
for example what would this look like in AF?
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);
}
I dunno, I've never used Autofac. I wouldn't know where to begin.
@jbogard That's a shame.
Would you consider your Contoso implementation suitable to use as a template going forward?
Suitable template for...? It's our internal template for new projects if
that's what you mean.
On Wednesday, April 27, 2016, Tim notifications@github.com wrote:
@jbogard https://github.com/jbogard That's a shame.
Would you consider your Contoso implementation suitable to use as a
template going forward?—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#19 (comment)
Yes, that's what I meant. I was thinking of adapting it for Autofac and using it as my project template. Got everything working except that darn GetGenerator method.