[英]SignalR UseServiceBus deinition missing after upgrading to .NET 4.6.1
I have had to update a project from .NET 4.0 to 4.6.1 for irrelevant reasons. 出于不相关的原因,我不得不将项目从.NET 4.0更新到4.6.1。
After the upgrade, a number of nuget packages had to be reinstalled due to having been installed under the old framework prior. 升级后,由于先前已在旧框架下安装,因此必须重新安装许多nuget软件包。
All is well aside from the compiler not liking my old SignalR configuration: 除了编译器不喜欢我的旧SignalR配置外,其他一切都很好:
GlobalHost.DependencyResolver.UseServiceBus(connString, "notifications");
UseServiceBus() is undefined. UseServiceBus()未定义。
Edit: 编辑:
I forgot that the compiler no longer finds this cache property: WebAPI.OutputCache.Cache.MemoryCacheDefault() - Cache is undefined. 我忘记了编译器不再找到此缓存属性:WebAPI.OutputCache.Cache.MemoryCacheDefault()-缓存未定义。
var cacheConfig = new global::WebAPI.OutputCache.CacheOutputConfiguration(GlobalConfiguration.Configuration);
cacheConfig.RegisterCacheOutputProvider(() => new global::WebAPI.OutputCache.Cache.MemoryCacheDefault());
One thing to mention is that previously I was running SignalR v1.1.2, but nuget no longer has this version so I opted for 1.1.4. 要提及的一件事是,我以前运行的是SignalR v1.1.2,但是nuget不再具有此版本,因此我选择了1.1.4。
Any ideas? 有任何想法吗? The MSDN documentation, while old, still instructs to use this method, so I'm not sure. MSDN文档虽然很旧,但仍指示使用此方法,因此我不确定。
Thanks! 谢谢!
Well, sometimes you just have to admit it when you make a rookie mistake, and this is one of those times. 好吧,有时候,当您犯了一个菜鸟错误时,您只需要承认这一点,这就是其中一次。
I was missing the SignalR.ServiceBus dll. 我缺少SignalR.ServiceBus dll。
I removed it to reinstall it and forgot because it's not included in the main package for SignalR. 我删除了它以重新安装它并忘记了,因为SignalR的主包装中没有包含它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.