I am trying to find practical application for System.Threading.CompressedStack. Something cool, not “Oh, we can move the stack from one thread to another for fun,” but rather when you really want to do it or something else that you can do with this interesting little class.
System.Threading.CompressedStack
It really is intended for internal use by the framework. From the doc:
The CompressedStack class is used inside the SecurityContext class. For example, the SecurityContext.Capture method grabs a compressed stack for the current call stack, as well as impersonation and culture information. The SecurityContext class, in turn, is used by the ExecutionContext class to stream context through threads, for example, when scheduling thread pool tasks.This class is not used in normal application programming.
The CompressedStack class is used inside the SecurityContext class. For example, the SecurityContext.Capture method grabs a compressed stack for the current call stack, as well as impersonation and culture information. The SecurityContext class, in turn, is used by the ExecutionContext class to stream context through threads, for example, when scheduling thread pool tasks.
This class is not used in normal application programming.
Directly from the documentation :
"This class is not used in normal application programming."
I assume this is only for unusual application programming.
. CAS- (CompressedStack.Capture), , (CompressedStack.Run), " " .
Otherwise, the "trusted" host method will run as untrusted code and will be launched into many SecurityExceptions when trying to access resources protected by CAS.
Source: https://habr.com/ru/post/1789385/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1789380/distributing-list-items-to-variables-in-python&usg=ALkJrhiHKpnsKpejA_UmZmWhSR9LbyqYYQConditional macroC # define for a function that calls: "function" overridden warning - gccRandom long I / O delays during periodic data recording - javaConditional value for #define - macrosHow do you guarantee that your MVC routes do not conflict with each other? What tracking system do you use? - model-view-controllerHow to create a path alias? - unixC ++ 0x library that implements movement for streams - c ++JavaScript - unique property update in prototyped object literals - javascriptAdding jQuery Datepicker in Zend form - zend-frameworkFirebug breaks error functions - firebugAll Articles