File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 88namespace ChatSample . AspNet
99{
1010 [ Authorize ( Roles = "Admin" ) ]
11- public class AdvancedChat : Hub
11+ public class AdvancedChatSampleHub : Hub
1212 {
1313 public override Task OnConnected ( )
1414 {
Original file line number Diff line number Diff line change 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" />
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 99
1010namespace ChatRoom
1111{
12- public class ChatHub : Hub
12+ public class ChatSampleHub : Hub
1313 {
1414 public void Send ( string name , string message )
1515 {
Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments