Table of Contents

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 HostItemsConfiguration class 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.

DefaultCompileJavascript
DefaultRequirePreprocessors
DefaultResetFlags

Specifies the default combination of flags used when resetting to default settings.

Properties

CompileJavascript
Items

Gets a list of HostItem objects in this HostConfiguration.

RequirePreprocessors
ResetFlags

Gets or sets the flags that determine which settings are reset to their default values.

Methods

AddAssemblies(string, IEnumerable<Assembly>, HostItemOptions)

Updates current HostItemsConfiguration by adding new element with specified parameters.

AddAssemblies(string, IEnumerable<string>, HostItemOptions, string[])

Updates current HostItemsConfiguration by adding new element with specified parameters.

AddAssembly(string, Assembly, HostItemOptions)

Updates current HostItemsConfiguration by adding new element with specified parameters.

AddAssembly(string, string, HostItemOptions, string[])

Updates current HostItemsConfiguration by adding new element with specified parameters.

AddObject(string, object, HostItemOptions)

Updates current HostItemsConfiguration by adding new element with specified parameters.

AddSystemAssemblies(TechnologyEnvironment, HostItemOptions)

Updates current HostItemsConfiguration by adding collection of system assemblies.

AddType(string, Type, HostItemOptions)

Updates current HostItemsConfiguration by adding new element with specified parameters.

AddTypes(string, IEnumerable<Type>, HostItemOptions)

Updates current HostItemsConfiguration by adding new element with specified parameters.

AssemblyWasAdded(string, Assembly)
Clear()

Removes all items from the Items collection.

CreateDefault()

Creates a new instance of the HostItemsConfiguration class with default settings.

GetAssemblyCollectionHostItem(string)
ResetToDefault()

Resets the configuration to its default values and returns the updated instance.

ResetToDefault(ResetToDefaultFlags)

Resets HostItemsConfiguration to its default state by clearing the Items collection 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.