Skip to content
Discussion options

You must be logged in to vote

@swegele I think the code you posted for BlazorApplicationContextManager is looking more and more attractive. The one change I would recommend is to also accept an instance of AuthenticationStateProvider in the constructor and use it to respect changes to the auth state made outside of Csla, by wiring up a handler for the AuthenticationStateChanged event it exposes. This covers scenarios such as login session timeouts, if the auth mechanism in use implements it.

The handler should await the task and update the stored Principal object once it completes. Object assignments are guaranteed to be atomic, so no locking is required.

If it is possible to do so without causing a recursive loop, yo…

Replies: 10 comments 61 replies

Comment options

You must be logged in to vote
2 replies
@swegele
Comment options

swegele Jan 10, 2022
Collaborator Author

@TheCakeMonster
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
14 replies
@TheCakeMonster
Comment options

@swegele
Comment options

swegele Jan 11, 2022
Collaborator Author

@swegele
Comment options

swegele Jan 12, 2022
Collaborator Author

@rockfordlhotka
Comment options

@rockfordlhotka
Comment options

Comment options

You must be logged in to vote
3 replies
@rockfordlhotka
Comment options

@swegele
Comment options

swegele Jan 12, 2022
Collaborator Author

@TheCakeMonster
Comment options

Answer selected by swegele
Comment options

You must be logged in to vote
6 replies
@swegele
Comment options

swegele Jan 12, 2022
Collaborator Author

@rockfordlhotka
Comment options

@rockfordlhotka
Comment options

@rockfordlhotka
Comment options

@rockfordlhotka
Comment options

Comment options

You must be logged in to vote
17 replies
@TheCakeMonster
Comment options

@swegele
Comment options

swegele Jan 14, 2022
Collaborator Author

@TheCakeMonster
Comment options

@swegele
Comment options

swegele Jan 15, 2022
Collaborator Author

@swegele
Comment options

swegele Jan 15, 2022
Collaborator Author

Comment options

You must be logged in to vote
14 replies
@TheCakeMonster
Comment options

@TheCakeMonster
Comment options

@swegele
Comment options

swegele Jan 25, 2022
Collaborator Author

@TheCakeMonster
Comment options

@swegele
Comment options

swegele Jan 26, 2022
Collaborator Author

Comment options

swegele
Jan 18, 2022
Collaborator Author

You must be logged in to vote
0 replies
Comment options

swegele
Jan 26, 2022
Collaborator Author

You must be logged in to vote
2 replies
@rockfordlhotka
Comment options

@TheCakeMonster
Comment options

Comment options

swegele
Jan 26, 2022
Collaborator Author

You must be logged in to vote
3 replies
@rockfordlhotka
Comment options

@swegele
Comment options

swegele Jan 26, 2022
Collaborator Author

@swegele
Comment options

swegele Jan 26, 2022
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants