Use for isolation deserialization library with generics? #15
Unanswered
johanlindfors
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey Steve (and the community). I'm trying to leverage the IsolatedRuntime to wrap YamlDotNet in order to demonstrate the possibility of leveraging isolation for code that's out of my scope (as a layer in a secure architecture sample). I'm struggling with wrapping the runtime.Invoke(() => { }); if this is invoked in a method with a generic signature such as the following:
public T Deserialize(string input) {
return runtime.Invoke(() => ... });
}
An exceptions is thrown on the runtime.Invoke as follows:
I can successfully call this if called by a non generic method in the same instance. But naturally that doesn't help me in the generic deserialization scenario...
Beta Was this translation helpful? Give feedback.
All reactions