N
N
Nikita2015-08-02 23:45:48
.NET
Nikita, 2015-08-02 23:45:48

C# Thread Permission Restriction?

Is there some feature/library to limit the work of a thread? A kind of sandbox with customizable options for accessing the network / disk / registry, etc. Preferably with exceptions.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Pukhov, 2015-08-03
@Neuroware

there are opportunities, google on permissions and domain, restrictions are imposed on the domain level in which the code is called. I don’t know how well they work, I didn’t check it, but they are a fact.

D
Denis Antonenko, 2015-08-05
@dabrahabra

Correctly you need to create a new AppDomain and run your code there:
[How to: Run Partially Trusted Code in a Sandbox]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question