Class HostItemsConfiguration
- Namespace
- Alternet.Common.TypeScript.HostObjects
- Assembly
- Alternet.Common.TypeScript.v11.dll
Represents properties and methods to store and manipulate host objects.
public class HostItemsConfiguration
- Inheritance
-
HostItemsConfiguration
Constructors
- HostItemsConfiguration()
Initializes a new instance of the
HostItemsConfigurationclass with default settings.
- HostItemsConfiguration(ResetToDefaultFlags)
Initializes a new instance of the HostItemsConfiguration class with the specified reset flags applied to the configuration.
Fields
- CreateDefaultOverride
Gets or sets a delegate that provides a custom method for creating a default instance of the host items configuration.
- DefaultResetFlags
Specifies the default combination of flags used when resetting to default settings.
Properties
- Items
Gets a list of
HostItemobjects in this HostConfiguration.
- ResetFlags
Gets or sets the flags that determine which settings are reset to their default values.
Methods
- AddAssemblies(string, IEnumerable<Assembly>, HostItemOptions)
Updates current
HostItemsConfigurationby adding new element with specified parameters.
- AddAssemblies(string, IEnumerable<string>, HostItemOptions, string[])
Updates current
HostItemsConfigurationby adding new element with specified parameters.
- AddAssembly(string, Assembly, HostItemOptions)
Updates current
HostItemsConfigurationby adding new element with specified parameters.
- AddAssembly(string, string, HostItemOptions, string[])
Updates current
HostItemsConfigurationby adding new element with specified parameters.
- AddObject(string, object, HostItemOptions)
Updates current
HostItemsConfigurationby adding new element with specified parameters.
- AddSystemAssemblies(TechnologyEnvironment, HostItemOptions)
Updates current
HostItemsConfigurationby adding collection of system assemblies.
- AddType(string, Type, HostItemOptions)
Updates current
HostItemsConfigurationby adding new element with specified parameters.
- AddTypes(string, IEnumerable<Type>, HostItemOptions)
Updates current
HostItemsConfigurationby adding new element with specified parameters.
- Clear()
Removes all items from the
Itemscollection.
- CreateDefault()
Creates a new instance of the HostItemsConfiguration class with default settings.
- ResetToDefault()
Resets the configuration to its default values and returns the updated instance.
- ResetToDefault(ResetToDefaultFlags)
Resets
HostItemsConfigurationto its default state by clearing theItemscollection and optionally adding default host items based on the provided flags.
- ResetToMinimal()
Resets the configuration to its minimal state, disabling preprocessors and JavaScript compilation. This allows to run minimalistic scripts faster.