Skip to content

Commit ac1f4d9

Browse files
committed
update aspnet samples hub name
1 parent f8351cb commit ac1f4d9

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

aspnet-samples/AdvancedChatRoom/AdvancedChat.cs renamed to aspnet-samples/AdvancedChatRoom/AdvancedChatSampleHub.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
namespace ChatSample.AspNet
99
{
1010
[Authorize(Roles = "Admin")]
11-
public class AdvancedChat : Hub
11+
public class AdvancedChatSampleHub : Hub
1212
{
1313
public override Task OnConnected()
1414
{

aspnet-samples/AdvancedChatRoom/ChatSample.AspNet.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211
<Content Include="Web.config" />
212212
</ItemGroup>
213213
<ItemGroup>
214-
<Compile Include="AdvancedChat.cs" />
214+
<Compile Include="AdvancedChatSampleHub.cs" />
215215
<Compile Include="Controllers\CookieController.cs" />
216216
<Compile Include="Properties\AssemblyInfo.cs" />
217217
<Compile Include="Startup.cs" />

aspnet-samples/AdvancedChatRoom/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ <h2 class="text-center" style="margin-top: 0; padding-top: 30px; padding-bottom:
269269
// Declare a proxy to reference the hub.
270270
var connection = $.connection;
271271
connection.hub.logging = true;
272-
var chat = connection.advancedChat;
272+
var chat = connection.advancedChatSampleHub;
273273
window.console.debug = console.log;
274274
bindConnectionMessage(chat);
275275

aspnet-samples/ChatRoom/ChatRoom.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
<Content Include="Web.config" />
192192
</ItemGroup>
193193
<ItemGroup>
194-
<Compile Include="ChatHub.cs" />
194+
<Compile Include="ChatSampleHub.cs" />
195195
<Compile Include="Properties\AssemblyInfo.cs" />
196196
<Compile Include="Startup.cs" />
197197
</ItemGroup>

aspnet-samples/ChatRoom/ChatHub.cs renamed to aspnet-samples/ChatRoom/ChatSampleHub.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace ChatRoom
1111
{
12-
public class ChatHub : Hub
12+
public class ChatSampleHub : Hub
1313
{
1414
public void Send(string name, string message)
1515
{

aspnet-samples/ChatRoom/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<script type="text/javascript">
3030
$(function () {
3131
// Declare a proxy to reference the hub.
32-
var chat = $.connection.chatHub;
32+
var chat = $.connection.chatSampleHub;
3333
// Create a function that the hub can call to broadcast messages.
3434
chat.client.broadcastMessage = function (name, message) {
3535
// Html encode display name and message.

0 commit comments

Comments
 (0)