Tuesday, 15 July 2014

c# - Simple Injector - Injecting ISecureDataFormat into AccountController -



c# - Simple Injector - Injecting ISecureDataFormat into AccountController -

i working on setting mvc 5 project web api 2 , identity 2.0. in template, business relationship controller constructor has 2 parameters - applicationusermanager , isecuredataformat.

public accountcontroller(applicationusermanager usermanager,isecuredataformat<authenticationticket> accesstokenformat)

i have added simple injector default project , began cleaning controllers dependency injection. however, cannot life of figure out how inject isecuredataformat interface.

i have tried quite few things including:

container.registerwebapirequest<isecuredataformat<authenticationticket>, securedataformat>();

but appears securedataformat no longer exists of recent version of mvc. has been able track downwards how inject interface?

thanks!

c# asp.net-mvc dependency-injection simple-injector

No comments:

Post a Comment