18 lines
748 B
C#
18 lines
748 B
C#
|
|
namespace Elsa.Scripting.JavaScript.Options
|
||
|
|
{
|
||
|
|
public class JintOptions
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// Enables access to any .NET class. Do not enable if you are executing workflows from untrusted sources (e.g. user defined workflows).
|
||
|
|
///
|
||
|
|
/// See Jint docs for more: https://github.com/sebastienros/jint#accessing-net-assemblies-and-classes
|
||
|
|
/// </summary>
|
||
|
|
public bool AllowClrAccess { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Enables access to .NET configuration via the <c>getConfig</c> function.
|
||
|
|
/// Do not enable if you are executing workflows from untrusted sources (e.g user defined workflows).
|
||
|
|
/// </summary>
|
||
|
|
public bool AllowConfigurationAccess { get; set; }
|
||
|
|
}
|
||
|
|
}
|