This project has moved. For the latest updates, please go here.

Is there a way to use dependency injection (Autofac) with Katana

Jan 10, 2014 at 8:30 AM
Edited Jan 10, 2014 at 8:50 AM
Have some services accept a Solver option.

to avoid something as this
...
        OAuthOptions        = new OAuthAuthorizationServerOptions
        {
etc
            AuthorizationCodeProvider = new MyAuthenticationTokenProvider(TokenType.Code),
            AccessTokenProvider = new MyAuthenticationTokenProvider(TokenType.Access),
            RefreshTokenProvider = new MyAuthenticationTokenProvider(TokenType.Refresh),
            AuthorizationCodeFormat = new TicketFormatProvider(),
            AccessTokenFormat = new TicketFormatProvider(),
            RefreshTokenFormat = new TicketFormatProvider()
etc
           }
...