T
Tony Johansson
Hi!
At the end is some text from e-learning that I use.
Sequrity is one part of the execution context. There is one row in the text
that I find hard to understand and that is this row
"For instance, a method that accesses a file may require a different context
than the one that made a call to it if the security context of the caller
does not provide access to the file"
What does this mean ?
Threads are executed under a given execution context. The execution context
contains information about the security, transaction, synchronization, and
localization contexts of the thread. When calling a method asynchronously,
the method can be executed in a different context because it is a different
thread. For instance, a method that accesses a file may require a different
context than the one that made a call to it if the security context of the
caller does not provide access to the file. In some situations, you may want
to propagate the execution context from one thread to another. In the .NET
Framework, you can achieve this by using the ExecutionContext class.
//Tony
At the end is some text from e-learning that I use.
Sequrity is one part of the execution context. There is one row in the text
that I find hard to understand and that is this row
"For instance, a method that accesses a file may require a different context
than the one that made a call to it if the security context of the caller
does not provide access to the file"
What does this mean ?
Threads are executed under a given execution context. The execution context
contains information about the security, transaction, synchronization, and
localization contexts of the thread. When calling a method asynchronously,
the method can be executed in a different context because it is a different
thread. For instance, a method that accesses a file may require a different
context than the one that made a call to it if the security context of the
caller does not provide access to the file. In some situations, you may want
to propagate the execution context from one thread to another. In the .NET
Framework, you can achieve this by using the ExecutionContext class.
//Tony