File tree Expand file tree Collapse file tree 4 files changed +9
-7
lines changed
AbpCompanyName.AbpProjectName.WebMpa
AbpCompanyName.AbpProjectName.WebSpaAngular/App_Start Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 ( )
Original file line number Diff line number Diff line change 33 if ( ! $ ) {
44 return ;
55 }
6-
6+
77 abp . event . on ( 'abp.notifications.received' , function ( userNotification ) {
88 console . log ( userNotification ) ;
99 } ) ;
Original file line number Diff line number Diff 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 ( )
You can’t perform that action at this time.
0 commit comments