Skip to content
Discussion options

You must be logged in to vote

The intent of LocalContext is to provide a way to have global state on the client and different global state on the server, both such that the state is managed for you by CSLA, so it

  1. Flows across threads, sync contexts, etc.
  2. Is automatically removed from the server when the server call completes

The intent of ClientContext is to provide a way to have global state on the client, with that state flowing to the server with each data portal call, so the server has a copy of the client state.

I agree that the use of LocalContext is quite limited, and in most cases ClientContext is what people would want to use.

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by rockfordlhotka
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2486 on September 16, 2021 14:32.