Skip to content

Commit ab4ffe7

Browse files
authored
Merge pull request #109 from JialinXin/biForHub
Update hub names in samples
2 parents 03171ee + ac1f4d9 commit ab4ffe7

File tree

22 files changed

+40
-40
lines changed

22 files changed

+40
-40
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.

samples/AdvancedChatRoom/Hub/ChatCookie.cs renamed to samples/AdvancedChatRoom/Hub/ChatCookieSampleHub.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace Microsoft.Azure.SignalR.Samples.AdvancedChatRoom
1010
[Authorize(Roles = "Admin")]
1111
[Authorize(Policy = "ClaimBasedAuth")]
1212
[Authorize(Policy = "PolicyBasedAuth")]
13-
public class ChatCookie : ChatBase
13+
public class ChatCookieSampleHub : ChatBase
1414
{
1515
}
1616
}

samples/AdvancedChatRoom/Hub/ChatJwt.cs renamed to samples/AdvancedChatRoom/Hub/ChatJwtSampleHub.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace Microsoft.Azure.SignalR.Samples.AdvancedChatRoom
1010
[Authorize(Roles = "Admin")]
1111
[Authorize(Policy = "ClaimBasedAuth")]
1212
[Authorize(Policy = "PolicyBasedAuth")]
13-
public class ChatJwt : ChatBase
13+
public class ChatJwtSampleHub : ChatBase
1414
{
1515
}
1616
}

samples/AdvancedChatRoom/Startup.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ public void Configure(IApplicationBuilder app)
7373
app.UseFileServer();
7474
app.UseAzureSignalR(routes =>
7575
{
76-
routes.MapHub<ChatJwt>("/chatjwt");
77-
routes.MapHub<ChatCookie>("/chatcookie");
76+
routes.MapHub<ChatJwtSampleHub>("/chatjwt");
77+
routes.MapHub<ChatCookieSampleHub>("/chatcookie");
7878
});
7979
}
8080
}

samples/ChatRoom/Hub/Chat.cs renamed to samples/ChatRoom/Hub/ChatSampleHub.cs

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

66
namespace Microsoft.Azure.SignalR.Samples.ChatRoom
77
{
8-
public class Chat : Hub
8+
public class ChatSampleHub : Hub
99
{
1010
public void BroadcastMessage(string name, string message)
1111
{

0 commit comments

Comments
 (0)