Skip to content

Commit 0f02631

Browse files
author
ismcagdas
committed
location of Abp SignalR mapping fixed
1 parent 3ae903a commit 0f02631

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

src/AbpCompanyName.AbpProjectName.WebMpa/App_Start/AbpProjectNameWebModule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace AbpCompanyName.AbpProjectName.WebMpa
1818
typeof(AbpProjectNameApplicationModule),
1919
typeof(AbpProjectNameWebApiModule),
2020
typeof(AbpWebSignalRModule),
21-
typeof(AbpHangfireModule),
21+
typeof(AbpHangfireModule),
2222
typeof(AbpWebMvcModule))]
2323
public class AbpProjectNameWebModule : AbpModule
2424
{

src/AbpCompanyName.AbpProjectName.WebMpa/App_Start/Startup.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,15 @@ public class Startup
2020
public void Configuration(IAppBuilder app)
2121
{
2222
app.UseAbp();
23-
app.MapSignalR();
24-
23+
2524
app.UseOAuthBearerAuthentication(AccountController.OAuthBearerOptions);
26-
25+
2726
app.UseCookieAuthentication(new CookieAuthenticationOptions
2827
{
2928
AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
3029
LoginPath = new PathString("/Account/Login")
3130
});
32-
31+
3332
app.UseExternalSignInCookie(DefaultAuthenticationTypes.ExternalCookie);
3433

3534
if (IsTrue("ExternalAuth.Facebook.IsEnabled"))
@@ -46,6 +45,8 @@ public void Configuration(IAppBuilder app)
4645
{
4746
app.UseGoogleAuthentication(CreateGoogleAuthOptions());
4847
}
48+
49+
app.MapSignalR();
4950
}
5051

5152
private static FacebookAuthenticationOptions CreateFacebookAuthOptions()

src/AbpCompanyName.AbpProjectName.WebMpa/js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
if (!$) {
44
return;
55
}
6-
6+
77
abp.event.on('abp.notifications.received', function (userNotification) {
88
console.log(userNotification);
99
});

src/AbpCompanyName.AbpProjectName.WebSpaAngular/App_Start/Startup.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ public class Startup
2020
public void Configuration(IAppBuilder app)
2121
{
2222
app.UseAbp();
23-
app.MapSignalR();
2423

2524
app.UseOAuthBearerAuthentication(AccountController.OAuthBearerOptions);
2625

@@ -46,6 +45,8 @@ public void Configuration(IAppBuilder app)
4645
{
4746
app.UseGoogleAuthentication(CreateGoogleAuthOptions());
4847
}
48+
49+
app.MapSignalR();
4950
}
5051

5152
private static FacebookAuthenticationOptions CreateFacebookAuthOptions()

0 commit comments

Comments
 (0)