-
Notifications
You must be signed in to change notification settings - Fork 161
Expand file tree
/
Copy pathHostSettings.cs
More file actions
62 lines (57 loc) · 2.49 KB
/
HostSettings.cs
File metadata and controls
62 lines (57 loc) · 2.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
namespace Microsoft.ClearScript
{
/// <summary>
/// Defines properties that comprise ClearScript's global configuration.
/// </summary>
public static class HostSettings
{
private static CustomAttributeLoader customAttributeLoader;
/// <summary>
/// Enables or disables assembly table usage.
/// </summary>
/// <remarks>
///<para>
/// The assembly table is a legacy internal feature intended to accelerate assembly
/// loading. Because it relies on deprecated platform functionality, this feature is now
/// disabled by default. Although its replacement is simpler and more efficient, the
/// feature is still available to provide full compatibility with older ClearScript
/// releases.
/// </para>
///<para>
/// The assembly table feature is only available on .NET Framework. This property has no
/// effect on other platforms.
/// </para>
/// </remarks>
public static bool UseAssemblyTable { get; set; }
/// <summary>
/// Gets or sets a semicolon-delimited list of directory paths to search for auxiliary files.
/// </summary>
/// <remarks>
/// This property allows the host to augment ClearScript's algorithm for locating unmanaged
/// resources such as native assemblies and related data files.
/// </remarks>
public static string AuxiliarySearchPath { get; set; }
/// <summary>
/// Gets or sets the custom attribute loader for ClearScript.
/// </summary>
/// <remarks>
/// When not explicitly assigned to a non-<c>null</c> value, this property returns the
/// <see cref="CustomAttributeLoader.Default">default custom attribute loader</see>.
/// </remarks>
public static CustomAttributeLoader CustomAttributeLoader
{
get => customAttributeLoader ?? CustomAttributeLoader.Default;
set => customAttributeLoader = value;
}
/// <summary>
/// Enables or disables interop assembly construction.
/// </summary>
/// <remarks>
/// Setting this property to <c>true</c> disables the construction of interop assemblies
/// at runtime. It is effective only on .NET Framework.
/// </remarks>
public static bool DisableInteropAssemblyConstruction { get; set; }
}
}