Please see http://go.microsoft.com/fwlink/?LinkId=272764 for more information on using SignalR.
Upgrading from 1.x to 2.0
-------------------------
Please see http://go.microsoft.com/fwlink/?LinkId=320578 for more information on how to
upgrade your SignalR 1.x application to 2.0.
Mapping the Hubs connection
----------------------------
To enable SignalR in your application, create a class called Startup with the following:
using Microsoft.Owin;
using Owin;
using MyWebApplication;
namespace MyWebApplication
{
public class Startup
{
public void Configuration(IAppBuilder app)
{
app.MapSignalR();
}
}
}
Getting Started
---------------
See http://www.asp.net/signalr/overview/getting-started for more information on how to get started.
Why does ~/signalr/hubs return 404 or Why do I get a JavaScript error: 'myhub is undefined'?
--------------------------------------------------------------------------------------------
This issue is generally due to a missing or invalid script reference to the auto-generated Hub JavaScript proxy at '~/signalr/hubs'.
Please make sure that the Hub route is registered before any other routes in your application.
In ASP.NET MVC 4 you can do the following:
<script src="~/signalr/hubs"></script>
If you're writing an ASP.NET MVC 3 application, make sure that you are using Url.Content for your script references:
<script src="@Url.Content("~/signalr/hubs")"></script>
If you're writing a regular ASP.NET application use ResolveClientUrl for your script references or register them via the ScriptManager
using a app root relative path (starting with a '~/'):
<script src='<%: ResolveClientUrl("~/signalr/hubs") %>'></script>
If the above still doesn't work, you may have an issue with routing and extensionless URLs. To fix this, ensure you have the latest
patches installed for IIS and ASP.NET.
没有合适的资源?快使用搜索试试~ 我知道了~
使用SignalR实时推送数据库变化
共486个文件
dll:194个
xml:88个
nupkg:49个
4星 · 超过85%的资源 需积分: 50 92 下载量 83 浏览量
2018-06-25
13:58:42
上传
评论
收藏 36.75MB RAR 举报
温馨提示
使用SignalR实时推送数据库变化, 测试环境 .net 4.6 vs2017 mvc5 sqlserver2012
资源推荐
资源详情
资源评论
收起资源包目录
使用SignalR实时推送数据库变化 (486个子文件)
_._ 0B
_._ 0B
Global.asax 103B
DesignTimeResolveAssemblyReferencesInput.cache 12KB
SignalrDemo.csproj.CoreCompileInputs.cache 42B
applicationhost.config 81KB
csi.exe.config 9KB
csi.exe.config 9KB
VBCSCompiler.exe.config 8KB
VBCSCompiler.exe.config 8KB
csc.exe.config 8KB
vbc.exe.config 8KB
vbc.exe.config 8KB
csc.exe.config 8KB
ApplicationInsights.config 7KB
Web.config 5KB
SignalrDemo.dll.config 5KB
packages.config 4KB
Web.config 2KB
Web.Release.config 1KB
Web.Debug.config 1KB
SignalrDemo.csproj.CopyComplete 0B
CarInfoRepository.cs 2KB
AssemblyInfo.cs 1KB
BundleConfig.cs 1KB
Global.asax.cs 1KB
RouteConfig.cs 602B
WebApiConfig.cs 601B
Startup.cs 446B
CarInfoHub.cs 403B
HomeController.cs 396B
CarInfo.cs 384B
DefaultController.cs 364B
FilterConfig.cs 279B
TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs 0B
TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs 0B
TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs 0B
Index.cshtml 2KB
SignalrDemo.csproj 15KB
bootstrap.css 143KB
bootstrap.min.css 118KB
bootstrap-theme.css 26KB
bootstrap-theme.min.css 23KB
Microsoft.CodeAnalysis.VisualBasic.dll 5.06MB
Microsoft.CodeAnalysis.VisualBasic.dll 5.06MB
Microsoft.CodeAnalysis.CSharp.dll 4.39MB
Microsoft.CodeAnalysis.CSharp.dll 4.39MB
Microsoft.CodeAnalysis.dll 2.24MB
Microsoft.CodeAnalysis.dll 2.24MB
Microsoft.AI.Agent.Intercept.dll 1.87MB
Microsoft.AI.Agent.Intercept.dll 1.87MB
Microsoft.AI.Agent.Intercept.dll 1.87MB
Microsoft.DiaSymReader.Native.amd64.dll 1.41MB
Microsoft.DiaSymReader.Native.amd64.dll 1.41MB
WebGrease.dll 1.22MB
WebGrease.dll 1.22MB
Microsoft.DiaSymReader.Native.x86.dll 1.11MB
Microsoft.DiaSymReader.Native.x86.dll 1.11MB
System.Text.Encoding.CodePages.dll 749KB
System.Text.Encoding.CodePages.dll 749KB
Newtonsoft.Json.dll 649KB
Newtonsoft.Json.dll 649KB
Newtonsoft.Json.dll 643KB
Newtonsoft.Json.dll 638KB
Newtonsoft.Json.dll 619KB
Newtonsoft.Json.dll 619KB
System.Web.Mvc.dll 533KB
System.Web.Mvc.dll 533KB
Newtonsoft.Json.dll 530KB
Newtonsoft.Json.dll 501KB
Newtonsoft.Json.dll 465KB
System.Reflection.Metadata.dll 454KB
System.Reflection.Metadata.dll 454KB
System.Web.Http.dll 441KB
System.Web.Http.dll 441KB
Newtonsoft.Json.dll 431KB
Microsoft.AspNet.SignalR.Core.dll 344KB
Microsoft.AspNet.SignalR.Core.dll 344KB
System.Web.Razor.dll 255KB
System.Web.Razor.dll 255KB
System.Collections.Immutable.dll 239KB
System.Collections.Immutable.dll 239KB
Microsoft.ApplicationInsights.dll 229KB
Microsoft.AI.PerfCounterCollector.dll 201KB
Microsoft.AI.PerfCounterCollector.dll 201KB
System.Web.WebPages.dll 199KB
System.Web.WebPages.dll 199KB
Microsoft.ApplicationInsights.dll 194KB
Microsoft.ApplicationInsights.dll 194KB
Microsoft.ApplicationInsights.dll 192KB
System.Net.Http.Formatting.dll 172KB
System.Net.Http.Formatting.dll 172KB
System.Net.Http.Formatting.dll 172KB
Microsoft.AI.PerfCounterCollector.dll 153KB
System.Net.Http.Formatting.dll 142KB
Microsoft.Owin.Host.SystemWeb.dll 139KB
Microsoft.Owin.Host.SystemWeb.dll 139KB
Microsoft.CodeAnalysis.Scripting.dll 137KB
Microsoft.CodeAnalysis.Scripting.dll 137KB
System.Web.Helpers.dll 132KB
共 486 条
- 1
- 2
- 3
- 4
- 5
资源评论
- WBStudy2022-11-18不错的资源,可以参考,有用
- Passhanshuiyingyue2019-03-12学习学习!!
- mengjixinglove2019-05-22下载了,少了一些文件,无法成功运行
- lanbooli2018-06-27不错,很好!!
CC码
- 粉丝: 3
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功