@@ -76,7 +76,7 @@ protected bool SessionEnabled<T>(T upParty) where T : IUpParty
7676 return upParty . SessionLifetime > 0 || upParty . PersistentSessionAbsoluteLifetime > 0 || upParty . PersistentSessionLifetimeUnlimited ;
7777 }
7878
79- public async Task AddOrUpdateSessionTrackAsync < T > ( T upParty , DownPartySessionLink downPartyLink , bool updateDbActiveSession = false ) where T : IUpParty
79+ public async Task AddOrUpdateSessionTrackAsync < T > ( T upParty , DownPartySessionLink downPartyLink , bool saveDbActiveSession = false ) where T : IUpParty
8080 {
8181 ( var session , var sessionGroups ) = await LoadSessionTrackAsync ( upParty , downPartyLink ) ;
8282 foreach ( var sessionGroup in sessionGroups )
@@ -89,13 +89,13 @@ public async Task AddOrUpdateSessionTrackAsync<T>(T upParty, DownPartySessionLin
8989 }
9090 await sessionTrackCookieRepository . SaveAsync ( session ) ;
9191
92- if ( updateDbActiveSession )
92+ if ( saveDbActiveSession )
9393 {
9494 await activeSessionLogic . SaveSessionAsync ( sessionGroups , session . CreateTime , session . LastUpdated ) ;
9595 }
9696 }
9797
98- protected async Task AddOrUpdateSessionTrackWithClaimsAsync < T > ( T upParty , IEnumerable < ClaimAndValues > claims , bool updateDbActiveSession = false ) where T : IUpParty
98+ protected async Task AddOrUpdateSessionTrackWithClaimsAsync < T > ( T upParty , IEnumerable < ClaimAndValues > claims , bool saveDbActiveSession = false ) where T : IUpParty
9999 {
100100 ( var session , var sessionGroups ) = await LoadSessionTrackAsync ( upParty , null ) ;
101101 foreach ( var sessionGroup in sessionGroups )
@@ -109,7 +109,7 @@ protected async Task AddOrUpdateSessionTrackWithClaimsAsync<T>(T upParty, IEnume
109109 }
110110 await sessionTrackCookieRepository . SaveAsync ( session ) ;
111111
112- if ( updateDbActiveSession && claims ? . Any ( ) == true )
112+ if ( saveDbActiveSession && claims ? . Any ( ) == true )
113113 {
114114 await activeSessionLogic . SaveSessionAsync ( sessionGroups , session . CreateTime , session . LastUpdated ) ;
115115 }
0 commit comments