• 大小: 11.86M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: 推送  消息  SignalR  

资源简介


资源截图

代码片段和文件信息

using System;
using Microsoft.AspNet.SignalR;
using Owin;
using Microsoft.Owin.Cors;
using Microsoft.Owin.Hosting;

namespace Server
{
    class Program
    {
        static void Main(string[] args)
        {
            string url = “http://*:8899“;//IP和端口
            url = “http://localhost:8899“;
            using (WebApp.Start(url))
            {
                Console.Read();
            }
        }
    }
    public class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            var config = new HubConfiguration
            {
                EnableJSONP = true
                EnableDetailedErrors = true
                EnablejavascriptProxies = true
            };
            app.UseCors(CorsOptions.AllowAll);
            

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-11-24 20:59  packages\
     目录           0  2016-11-23 23:51  packages\jQuery.1.6.4\
     目录           0  2016-11-23 23:51  packages\jQuery.1.6.4\Content\
     目录           0  2016-11-23 23:51  packages\jQuery.1.6.4\Content\scripts\
     文件      214129  2016-11-23 23:51  packages\jQuery.1.6.4\Content\scripts\jquery-1.6.4-vsdoc.js
     文件      238159  2016-11-23 23:51  packages\jQuery.1.6.4\Content\scripts\jquery-1.6.4.js
     文件       91669  2016-11-23 23:51  packages\jQuery.1.6.4\Content\scripts\jquery-1.6.4.min.js
     文件      231459  2016-11-23 23:51  packages\jQuery.1.6.4\jQuery.1.6.4.nupkg
     目录           0  2016-11-23 23:51  packages\jQuery.1.6.4\Tools\
     文件         914  2016-11-23 23:51  packages\jQuery.1.6.4\Tools\install.ps1
     文件      216286  2016-11-23 23:51  packages\jQuery.1.6.4\Tools\jquery-1.6.4-vsdoc-para.js
     文件        1455  2016-11-23 23:51  packages\jQuery.1.6.4\Tools\uninstall.ps1
     目录           0  2016-11-23 23:49  packages\Microsoft.AspNet.Cors.5.0.0\
     目录           0  2016-11-23 23:49  packages\Microsoft.AspNet.Cors.5.0.0\lib\
     目录           0  2016-11-23 23:49  packages\Microsoft.AspNet.Cors.5.0.0\lib\net45\
     文件       25808  2016-11-23 23:49  packages\Microsoft.AspNet.Cors.5.0.0\lib\net45\System.Web.Cors.dll
     文件       15215  2016-11-23 23:49  packages\Microsoft.AspNet.Cors.5.0.0\Microsoft.AspNet.Cors.5.0.0.nupkg
     目录           0  2016-11-23 23:51  packages\Microsoft.AspNet.Mvc.4.0.20710.0\
     目录           0  2016-11-23 23:51  packages\Microsoft.AspNet.Mvc.4.0.20710.0\lib\
     目录           0  2016-11-23 23:51  packages\Microsoft.AspNet.Mvc.4.0.20710.0\lib\net40\
     文件      506976  2016-11-23 23:51  packages\Microsoft.AspNet.Mvc.4.0.20710.0\lib\net40\System.Web.Mvc.dll
     文件      847872  2016-11-23 23:51  packages\Microsoft.AspNet.Mvc.4.0.20710.0\lib\net40\System.Web.Mvc.xml
     目录           0  2016-11-23 23:51  packages\Microsoft.AspNet.Mvc.4.0.20710.0\lib\net40\zh-Hans\
     文件       28768  2016-11-23 23:51  packages\Microsoft.AspNet.Mvc.4.0.20710.0\lib\net40\zh-Hans\System.Web.Mvc.resources.dll
     文件      795729  2016-11-23 23:51  packages\Microsoft.AspNet.Mvc.4.0.20710.0\lib\net40\zh-Hans\System.Web.Mvc.xml
     文件      266689  2016-11-23 23:51  packages\Microsoft.AspNet.Mvc.4.0.20710.0\Microsoft.AspNet.Mvc.4.0.20710.0.nupkg
     目录           0  2016-11-23 23:51  packages\Microsoft.AspNet.Mvc.zh-Hans.4.0.20710.0\
     目录           0  2016-11-23 23:51  packages\Microsoft.AspNet.Mvc.zh-Hans.4.0.20710.0\lib\
     目录           0  2016-11-23 23:51  packages\Microsoft.AspNet.Mvc.zh-Hans.4.0.20710.0\lib\net40\
     目录           0  2016-11-23 23:51  packages\Microsoft.AspNet.Mvc.zh-Hans.4.0.20710.0\lib\net40\zh-Hans\
     文件       28768  2016-11-23 23:51  packages\Microsoft.AspNet.Mvc.zh-Hans.4.0.20710.0\lib\net40\zh-Hans\System.Web.Mvc.resources.dll
............此处省略362个文件信息

评论

共有 条评论