Skip to content

Commit 7066f79

Browse files
author
Elad Zelingher
committed
A bit prettier
1 parent 2c1d071 commit 7066f79

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/net45/WampSharp/WAMP2/V2/MetaApi/Session/SessionDescriptorService.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,16 @@ public SessionDescriptorService(IWampHostedRealm realm)
2626

2727
private void OnSessionCreated(object sender, WampSessionCreatedEventArgs e)
2828
{
29+
WelcomeDetails welcomeDetails = e.WelcomeDetails;
30+
2931
WampSessionDetails sessionDetails = new WampSessionDetails()
3032
{
3133
Realm = mRealm.Name,
3234
Session = e.SessionId,
33-
AuthMethod = e.WelcomeDetails.AuthenticationMethod ?? "anonymous",
34-
AuthId = e.WelcomeDetails.AuthenticationId,
35-
AuthProvider = e.WelcomeDetails.AuthenticationProvider,
36-
AuthRole = e.WelcomeDetails.AuthenticationRole,
35+
AuthMethod = welcomeDetails.AuthenticationMethod ?? "anonymous",
36+
AuthId = welcomeDetails.AuthenticationId,
37+
AuthProvider = welcomeDetails.AuthenticationProvider,
38+
AuthRole = welcomeDetails.AuthenticationRole,
3739
TransportDetails = e.HelloDetails.TransportDetails
3840
};
3941

0 commit comments

Comments
 (0)