Devesprit.Scripter

InvokeContext Enumeration

Different types of contexts available for script execution

Namespace:  Devesprit.Scripter
Assembly:  Devesprit Scripter (in Devesprit Scripter.dll)

Syntax


public enum InvokeContext
Public Enumeration InvokeContext
public enum class InvokeContext

Members


Member nameDescription
NewAppDomain Script execution in a new AppDomain separate from the main AppDomain of the software. Note: If you use this context and the intended script has a return value, the return value must have Serialization attribute. For more information visit https://msdn.microsoft.com/en-us/library/ms973893.aspx
CurrentAppDomain Script execution in the main Thread and AppDomain of the software.
CurrentAppDomainSeparateThread Script execution in the main AppDomain of the software and a new Thread.
SeparateProcess Script execution in a new Process separate from the process of the software. Note: If you use this context and the intended script has a return value, the return value must have Serialization attribute. For more information visit https://msdn.microsoft.com/en-us/library/ms973893.aspx