需要在初始化时,重新对 Resolver 赋值一个新的实例:
public class Startup { public void Configuration(IAppBuilder app) { var hubConfiguration = new HubConfiguration {Resolver = new DefaultDependencyResolver()}; app.MapSignalR(hubConfiguration); } }
原文地址:https://www.cnblogs.com/xwgli/p/9484231.html
时间: 2024-11-16 10:57:34