【发布时间】:2014-06-23 22:48:05
【问题描述】:
我遇到了与here 相同的问题,但没有答案,只是使用 Unity。
我正在尝试在最新的 VS2013(更新 2)SPA/Web Api 模板中注册 ISecureDataFormat<>。
我试过了
container.RegisterType(typeof(ISecureDataFormat<>), typeof(SecureDataFormat<>));
container.RegisterType<ISecureDataFormat<AuthenticationTicket>, SecureDataFormat<AuthenticationTicket>>();
container.RegisterType<ISecureDataFormat<AuthenticationTicket>, TicketDataFormat>();
它“有效”,但不是真的,因为它抱怨该树中的下一个依赖关系,IDataSerializer...,然后是下一个 IDataProtector,我没有找到任何实现。
【问题讨论】:
标签: asp.net-identity asp.net-identity-2 unity-interception