Skip to content
Discussion options

You must be logged in to vote

CancellationTokens are designed to be used within a single process. CSLA is designed for the DataPortal to run in a single process or cross process (also called remote). That's why you are getting CSLA0010, non serializable items like CancellationToken can not be used in cross process situations.

However, if you are always going to use an in process data portal and are OK with closing the door to easily making it cross process in the future, I suspect it would still work if you suppressed the error. I've never tried it though. But that is the reason you are seeing that waring. As far as I know it also isn't a supported scenario (?) so all disclaimers about even if it works today, it may n…

Replies: 1 comment

Comment options

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