Why not use AuthenticationWrapper.AuthState?

Couldn’t we just do instead of:

bool authenticated = await clientSingleton.CreateClient();

and then

if (authenticated)

just do this:

if (AuthenticationWrapper.AuthState == AuthState.Authenticated)

since we are waiting for the method to be executed with await anyway?

Hi,

Seems our tag system was not working and the system has bumped this question for us so i apologise for not answering this before.

If i think its readability and easier for students to understand what is going on with the bool defined method but both should be fine

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms