Anvil
Loading...
Searching...
No Matches
Anvil.Plugins.PluginInfoAttribute Class Referencesealed

Additional Plugin Metadata. More...

+ Inheritance diagram for Anvil.Plugins.PluginInfoAttribute:
+ Collaboration diagram for Anvil.Plugins.PluginInfoAttribute:

Properties

bool Isolated [get]
 Gets or sets if this is an isolated plugin.
 
string[] OptionalDependencies = [] [get]
 A list of optional plugin dependencies.
 

Detailed Description

Additional Plugin Metadata.

Property Documentation

◆ Isolated

bool Anvil.Plugins.PluginInfoAttribute.Isolated
get

Gets or sets if this is an isolated plugin.

An isolated plugin is given a separate container for services, and its services are hidden from other plugins.
It may still access services from anvil, and other non-isolated plugins.
Isolated plugins may be loaded and unloaded on demand, independent of startup.

◆ OptionalDependencies

string [] Anvil.Plugins.PluginInfoAttribute.OptionalDependencies = []
get

A list of optional plugin dependencies.

By default, an exception will be thrown at startup if a plugin references a type from another plugin, and the plugin is not loaded.
Adding a plugin name to this list will instead cause these types to be skipped if the plugin is not loaded.


The documentation for this class was generated from the following file: