12 | Use this area to provide additional information. 13 |
14 | 15 |16 | Use this area to provide additional information. 17 |
18 | 19 |20 | Use this area to provide additional information. 21 |
22 |├── .gitattributes
├── .gitignore
├── README.md
├── Samples_1.1.3
├── .nuget
│ ├── NuGet.Config
│ ├── NuGet.exe
│ └── NuGet.targets
├── BasicChat.CrossDomain
│ ├── BasicChat.CrossDomain.csproj
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Scripts
│ │ ├── jquery-1.8.3.intellisense.js
│ │ ├── jquery-1.8.3.js
│ │ ├── jquery-1.8.3.min.js
│ │ ├── jquery.signalR-1.1.3.js
│ │ └── jquery.signalR-1.1.3.min.js
│ ├── Web.Debug.config
│ ├── Web.Release.config
│ ├── Web.config
│ ├── index.html
│ ├── noproxy.html
│ └── packages.config
├── BasicChat.Mvc
│ ├── App_Start
│ │ ├── AuthConfig.cs
│ │ ├── BundleConfig.cs
│ │ ├── FilterConfig.cs
│ │ ├── RouteConfig.cs
│ │ └── WebApiConfig.cs
│ ├── BasicChat.Mvc.csproj
│ ├── Content
│ │ ├── Site.css
│ │ └── themes
│ │ │ └── base
│ │ │ ├── images
│ │ │ ├── ui-bg_flat_0_aaaaaa_40x100.png
│ │ │ ├── ui-bg_flat_75_ffffff_40x100.png
│ │ │ ├── ui-bg_glass_55_fbf9ee_1x400.png
│ │ │ ├── ui-bg_glass_65_ffffff_1x400.png
│ │ │ ├── ui-bg_glass_75_dadada_1x400.png
│ │ │ ├── ui-bg_glass_75_e6e6e6_1x400.png
│ │ │ ├── ui-bg_glass_95_fef1ec_1x400.png
│ │ │ ├── ui-bg_highlight-soft_75_cccccc_1x100.png
│ │ │ ├── ui-icons_222222_256x240.png
│ │ │ ├── ui-icons_2e83ff_256x240.png
│ │ │ ├── ui-icons_454545_256x240.png
│ │ │ ├── ui-icons_888888_256x240.png
│ │ │ └── ui-icons_cd0a0a_256x240.png
│ │ │ ├── jquery-ui.css
│ │ │ ├── jquery.ui.accordion.css
│ │ │ ├── jquery.ui.all.css
│ │ │ ├── jquery.ui.autocomplete.css
│ │ │ ├── jquery.ui.base.css
│ │ │ ├── jquery.ui.button.css
│ │ │ ├── jquery.ui.core.css
│ │ │ ├── jquery.ui.datepicker.css
│ │ │ ├── jquery.ui.dialog.css
│ │ │ ├── jquery.ui.progressbar.css
│ │ │ ├── jquery.ui.resizable.css
│ │ │ ├── jquery.ui.selectable.css
│ │ │ ├── jquery.ui.slider.css
│ │ │ ├── jquery.ui.tabs.css
│ │ │ ├── jquery.ui.theme.css
│ │ │ └── minified
│ │ │ ├── images
│ │ │ ├── ui-bg_flat_0_aaaaaa_40x100.png
│ │ │ ├── ui-bg_flat_75_ffffff_40x100.png
│ │ │ ├── ui-bg_glass_55_fbf9ee_1x400.png
│ │ │ ├── ui-bg_glass_65_ffffff_1x400.png
│ │ │ ├── ui-bg_glass_75_dadada_1x400.png
│ │ │ ├── ui-bg_glass_75_e6e6e6_1x400.png
│ │ │ ├── ui-bg_glass_95_fef1ec_1x400.png
│ │ │ ├── ui-bg_highlight-soft_75_cccccc_1x100.png
│ │ │ ├── ui-icons_222222_256x240.png
│ │ │ ├── ui-icons_2e83ff_256x240.png
│ │ │ ├── ui-icons_454545_256x240.png
│ │ │ ├── ui-icons_888888_256x240.png
│ │ │ └── ui-icons_cd0a0a_256x240.png
│ │ │ ├── jquery-ui.min.css
│ │ │ ├── jquery.ui.accordion.min.css
│ │ │ ├── jquery.ui.autocomplete.min.css
│ │ │ ├── jquery.ui.button.min.css
│ │ │ ├── jquery.ui.core.min.css
│ │ │ ├── jquery.ui.datepicker.min.css
│ │ │ ├── jquery.ui.dialog.min.css
│ │ │ ├── jquery.ui.progressbar.min.css
│ │ │ ├── jquery.ui.resizable.min.css
│ │ │ ├── jquery.ui.selectable.min.css
│ │ │ ├── jquery.ui.slider.min.css
│ │ │ ├── jquery.ui.tabs.min.css
│ │ │ └── jquery.ui.theme.min.css
│ ├── Controllers
│ │ ├── AccountController.cs
│ │ └── HomeController.cs
│ ├── Filters
│ │ └── InitializeSimpleMembershipAttribute.cs
│ ├── Global.asax
│ ├── Global.asax.cs
│ ├── Hubs
│ │ └── Chat.cs
│ ├── Images
│ │ ├── accent.png
│ │ ├── bullet.png
│ │ ├── heroAccent.png
│ │ ├── orderedList0.png
│ │ ├── orderedList1.png
│ │ ├── orderedList2.png
│ │ ├── orderedList3.png
│ │ ├── orderedList4.png
│ │ ├── orderedList5.png
│ │ ├── orderedList6.png
│ │ ├── orderedList7.png
│ │ ├── orderedList8.png
│ │ └── orderedList9.png
│ ├── Models
│ │ └── AccountModels.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Scripts
│ │ ├── _references.js
│ │ ├── jquery-1.8.3.intellisense.js
│ │ ├── jquery-1.8.3.js
│ │ ├── jquery-1.8.3.min.js
│ │ ├── jquery-ui-1.8.20.js
│ │ ├── jquery-ui-1.8.20.min.js
│ │ ├── jquery.signalR-1.1.3.js
│ │ ├── jquery.signalR-1.1.3.min.js
│ │ ├── jquery.unobtrusive-ajax.js
│ │ ├── jquery.unobtrusive-ajax.min.js
│ │ ├── jquery.validate-vsdoc.js
│ │ ├── jquery.validate.js
│ │ ├── jquery.validate.min.js
│ │ ├── jquery.validate.unobtrusive.js
│ │ ├── jquery.validate.unobtrusive.min.js
│ │ ├── knockout-2.1.0.debug.js
│ │ ├── knockout-2.1.0.js
│ │ └── modernizr-2.5.3.js
│ ├── Views
│ │ ├── Account
│ │ │ ├── ExternalLoginConfirmation.cshtml
│ │ │ ├── ExternalLoginFailure.cshtml
│ │ │ ├── Login.cshtml
│ │ │ ├── Manage.cshtml
│ │ │ ├── Register.cshtml
│ │ │ ├── _ChangePasswordPartial.cshtml
│ │ │ ├── _ExternalLoginsListPartial.cshtml
│ │ │ ├── _RemoveExternalLoginsPartial.cshtml
│ │ │ └── _SetPasswordPartial.cshtml
│ │ ├── Home
│ │ │ ├── About.cshtml
│ │ │ ├── Contact.cshtml
│ │ │ └── Index.cshtml
│ │ ├── Shared
│ │ │ ├── Error.cshtml
│ │ │ ├── _Layout.cshtml
│ │ │ └── _LoginPartial.cshtml
│ │ ├── Web.config
│ │ └── _ViewStart.cshtml
│ ├── Web.Debug.config
│ ├── Web.Release.config
│ ├── Web.config
│ ├── favicon.ico
│ └── packages.config
├── BasicChat.SelfHost
│ ├── App.config
│ ├── BasicChat.SelfHost.csproj
│ ├── Hubs
│ │ └── Chat.cs
│ ├── Program.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Startup.cs
│ └── packages.config
├── BasicChat
│ ├── App_Start
│ │ └── RegisterHubs.cs
│ ├── BasicChat.csproj
│ ├── Chat.cs
│ ├── ChatWithTracking.cs
│ ├── ConnectionMapping.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Scripts
│ │ ├── jquery-1.8.3.intellisense.js
│ │ ├── jquery-1.8.3.js
│ │ ├── jquery-1.8.3.min.js
│ │ ├── jquery.signalR-1.1.3.js
│ │ └── jquery.signalR-1.1.3.min.js
│ ├── Web.Debug.config
│ ├── Web.Release.config
│ ├── Web.config
│ ├── chat-tracking.html
│ ├── index.html
│ └── packages.config
├── BasicChatConsole
│ ├── App.config
│ ├── BasicChatConsole.csproj
│ ├── Program.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── packages.config
├── OtherSamples
│ ├── Global.asax
│ ├── Global.asax.cs
│ ├── OperationHub.cs
│ ├── OtherSamples.csproj
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Scripts
│ │ ├── jquery-1.6.4-vsdoc.js
│ │ ├── jquery-1.6.4.js
│ │ ├── jquery-1.6.4.min.js
│ │ ├── jquery.signalR-1.1.3.js
│ │ └── jquery.signalR-1.1.3.min.js
│ ├── Web.Debug.config
│ ├── Web.Release.config
│ ├── Web.config
│ ├── index.html
│ └── packages.config
└── Samples.sln
└── Samples_2.1.0
├── ConsoleClient
├── App.config
├── ConsoleClient.csproj
├── Features
│ ├── Hub
│ │ └── HubClient.cs
│ ├── HubT
│ │ └── HubTClient.cs
│ └── PersistentConnection
│ │ └── ConnectionClient.cs
├── Program.cs
├── Properties
│ └── AssemblyInfo.cs
└── packages.config
├── Samples_2.1.0.sln
└── WebApplication
├── App_Start
├── BundleConfig.cs
├── FilterConfig.cs
├── RouteConfig.cs
└── Startup.Auth.cs
├── Content
├── Site.css
├── bootstrap.css
└── bootstrap.min.css
├── Controllers
├── AccountController.cs
├── FeatureController.cs
└── HomeController.cs
├── Features
├── Authorization
│ ├── AuthorizationHub.cs
│ ├── AuthorizationHub.js
│ ├── AuthorizationPersistentConnection.cs
│ ├── AuthorizationPersistentConnection.js
│ └── Message.cs
├── ConnectionManager
│ ├── BackgroundThread.cs
│ └── BackgroundThread.js
├── EnableDetailedErrors
│ └── EnableDetailedErrors.js
├── Hub
│ ├── DemoHub.cs
│ └── DemoHub.js
├── HubException
│ ├── DemoExceptionHub.cs
│ └── DemoExceptionHub.js
├── HubT
│ ├── ITaskAgent.cs
│ ├── ITaskScheduler.cs
│ ├── TaskSchedulerHub.cs
│ └── intellisense.jpg
├── PersistentConnection
│ ├── DemoPersistentConnection.cs
│ ├── DemoPersistentConnection.js
│ └── Message.cs
├── Progress
│ ├── LongRunningTaskHub.cs
│ └── LongRunningTaskHub.js
├── SendToUser
│ ├── SendToUserHub.cs
│ └── SendToUserHub.js
└── SendToUsers
│ ├── SendToUsersHub.cs
│ └── SendToUsersHub.js
├── Global.asax
├── Global.asax.cs
├── Models
├── AccountViewModels.cs
└── IdentityModels.cs
├── Project_Readme.html
├── Properties
└── AssemblyInfo.cs
├── Scripts
├── _references.js
├── bootstrap.js
├── bootstrap.min.js
├── jquery-1.10.2.intellisense.js
├── jquery-1.10.2.js
├── jquery-1.10.2.min.js
├── jquery-1.10.2.min.map
├── jquery.signalR-2.1.0-pre-131116-b279.js
├── jquery.signalR-2.1.0-pre-131116-b279.min.js
├── jquery.validate-vsdoc.js
├── jquery.validate.js
├── jquery.validate.min.js
├── jquery.validate.unobtrusive.js
├── jquery.validate.unobtrusive.min.js
├── modernizr-2.6.2.js
├── respond.js
└── respond.min.js
├── Startup.cs
├── Views
├── Account
│ ├── ExternalLoginConfirmation.cshtml
│ ├── ExternalLoginFailure.cshtml
│ ├── Login.cshtml
│ ├── Manage.cshtml
│ ├── Register.cshtml
│ ├── _ChangePasswordPartial.cshtml
│ ├── _ExternalLoginsListPartial.cshtml
│ ├── _RemoveAccountPartial.cshtml
│ └── _SetPasswordPartial.cshtml
├── Feature
│ ├── Authorization.cshtml
│ ├── AuthorizationHub.cshtml
│ ├── AuthorizationPersistentConnection.cshtml
│ ├── ConnectionManager.cshtml
│ ├── EnableDetailedErrors.cshtml
│ ├── Hub.cshtml
│ ├── HubException.cshtml
│ ├── HubT.cshtml
│ ├── PersistentConnection.cshtml
│ ├── Progress.cshtml
│ ├── SendToUser.cshtml
│ └── SendToUsers.cshtml
├── Home
│ └── Index.cshtml
├── Shared
│ ├── Error.cshtml
│ ├── _Layout.cshtml
│ └── _LoginPartial.cshtml
├── Web.config
└── _ViewStart.cshtml
├── Web.Debug.config
├── Web.Release.config
├── Web.config
├── WebApplication.csproj
├── favicon.ico
├── fonts
├── glyphicons-halflings-regular.eot
├── glyphicons-halflings-regular.svg
├── glyphicons-halflings-regular.ttf
└── glyphicons-halflings-regular.woff
└── packages.config
/.gitattributes:
--------------------------------------------------------------------------------
1 | *.doc diff=astextplain
2 | *.DOC diff=astextplain
3 | *.docx diff=astextplain
4 | *.DOCX diff=astextplain
5 | *.dot diff=astextplain
6 | *.DOT diff=astextplain
7 | *.pdf diff=astextplain
8 | *.PDF diff=astextplain
9 | *.rtf diff=astextplain
10 | *.RTF diff=astextplain
11 |
12 | *.jpg binary
13 | *.png binary
14 | *.gif binary
15 |
16 | *.cs text=auto diff=csharp
17 | *.vb text=auto
18 | *.c text=auto
19 | *.cpp text=auto
20 | *.cxx text=auto
21 | *.h text=auto
22 | *.hxx text=auto
23 | *.py text=auto
24 | *.rb text=auto
25 | *.java text=auto
26 | *.html text=auto
27 | *.htm text=auto
28 | *.css text=auto
29 | *.scss text=auto
30 | *.sass text=auto
31 | *.less text=auto
32 | *.js text=auto
33 | *.lisp text=auto
34 | *.clj text=auto
35 | *.sql text=auto
36 | *.php text=auto
37 | *.lua text=auto
38 | *.m text=auto
39 | *.asm text=auto
40 | *.erl text=auto
41 | *.fs text=auto
42 | *.fsx text=auto
43 | *.hs text=auto
44 |
45 | *.csproj text=auto
46 | *.vbproj text=auto
47 | *.fsproj text=auto
48 | *.dbproj text=auto
49 | *.sln text=auto eol=crlf
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | [Oo]bj/
2 | [Bb]in/
3 | *.user
4 | /TestResults
5 | *.vspscc
6 | *.vssscc
7 | deploy
8 | deploy/*
9 | *.suo
10 | *.cache
11 | *.docstates
12 | _ReSharper.*
13 | *.csproj.user
14 | *[Rr]e[Ss]harper.user
15 | _ReSharper.*/
16 | packages/
17 | artifacts/*
18 | msbuild.log
19 | PublishProfiles/
20 | *.psess
21 | *.vsp
22 | *.pidb
23 | *.userprefs
24 | *DS_Store
25 | *.ncrunchsolution
26 | *.log
27 | *.vspx
28 | App_Data/
29 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ASP.NET SignalR Samples Repository
2 |
3 | We are no longer taking changes in this repo. It exists as an archive in case it is useful.
4 |
5 |
--------------------------------------------------------------------------------
/Samples_1.1.3/.nuget/NuGet.Config:
--------------------------------------------------------------------------------
1 |
2 |
38 | @Html.ActionLink("Register", "Register") if you don't have an account. 39 |
40 | } 41 |You're logged in as @User.Identity.Name.
13 | 14 | @if (ViewBag.HasLocalPassword) 15 | { 16 | @Html.Partial("_ChangePasswordPartial") 17 | } 18 | else 19 | { 20 | @Html.Partial("_SetPasswordPartial") 21 | } 22 | 23 |@externalLogin.ProviderDisplayName | 12 |13 | @if (ViewBag.ShowRemoveButton) 14 | { 15 | using (Html.BeginForm("Disassociate", "Account")) 16 | { 17 | @Html.AntiForgeryToken() 18 | 23 | } 24 | } 25 | else 26 | { 27 | @: 28 | } 29 | | 30 |
4 | You do not have a local password for this site. Add a local 5 | password so you can log in without an external login. 6 |
7 | 8 | @using (Html.BeginForm("Manage", "Account")) { 9 | @Html.AntiForgeryToken() 10 | @Html.ValidationSummary() 11 | 12 | 26 | } 27 | -------------------------------------------------------------------------------- /Samples_1.1.3/BasicChat.Mvc/Views/Home/About.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewBag.Title = "About"; 3 | } 4 | 5 | 6 |12 | Use this area to provide additional information. 13 |
14 | 15 |16 | Use this area to provide additional information. 17 |
18 | 19 |20 | Use this area to provide additional information. 21 |
22 |15 | Main: 16 | 425.555.0100 17 |
18 |19 | After Hours: 20 | 425.555.0199 21 |
22 |29 | Support: 30 | Support@example.com 31 |
32 |33 | Marketing: 34 | Marketing@example.com 35 |
36 |37 | General: 38 | General@example.com 39 |
40 |
47 | One Microsoft Way
48 | Redmond, WA 98052-6399
49 |
12 | To learn more about ASP.NET MVC visit 13 | http://asp.net/mvc. 14 | The page features videos, tutorials, and samples to help you get the most from ASP.NET MVC. 15 | If you have any questions about ASP.NET MVC visit 16 | our forums. 17 |
18 |@Html.ActionLink("your logo here", "Index", "Home")
16 |16 | You've successfully authenticated with @ViewBag.LoginProvider. 17 | Please enter a user name for this site below and click the Register button to finish 18 | logging in. 19 |
20 |45 | @Html.ActionLink("Register", "Register") if you don't have a local account. 46 |
47 | } 48 |@ViewBag.StatusMessage
10 |You're logged in as @User.Identity.GetUserName().
5 | 6 | @using (Html.BeginForm("Manage", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) 7 | { 8 | @Html.AntiForgeryToken() 9 |There are no external authentication services configured. See this article 11 | for details on setting up this ASP.NET application to support logging in via external services.
12 |@account.LoginProvider | 12 |
13 | @if (ViewBag.ShowRemoveButton)
14 | {
15 | using (Html.BeginForm("Disassociate", "Account"))
16 | {
17 | @Html.AntiForgeryToken()
18 |
19 | @Html.Hidden("loginProvider", account.LoginProvider)
20 | @Html.Hidden("providerKey", account.ProviderKey)
21 |
22 |
23 | }
24 | }
25 | else
26 | {
27 | @:
28 | }
29 | |
30 |
4 | You do not have a local username/password for this site. Add a local 5 | account so you can log in without an external login. 6 |
7 | 8 | @using (Html.BeginForm("Manage", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) 9 | { 10 | @Html.AntiForgeryToken() 11 | 12 |On server-side, implementing your Hub is easier as you get intellisense when sending messages to clients
7 |
Use another service to log in.
45 | @Html.Action("ExternalLoginsList", new { ReturnUrl = ViewBag.ReturnUrl }) 46 |