IPluginContainer Interface

Container for an instance of class which implements one or more interfaces derived from IPlugin.

Definition

Namespace: SMath.Extensibility.Collections
Assembly: SMath.Manager (in SMath.Manager.dll) Version: 1.74.9654.0
C#
public interface IPluginContainer

Properties

Instance

Instance which is stored in the container.

PluginAssembly Information about the main plug-in assembly.

Methods

GetInterfaceT Retrieves the interface T from the plug-in object. Throws InvalidOperationException unless the interface is found.
HasInterfaceT Determines whether interface T is implemented by the plug-in object (either directly or via a wrapper for legacy code).
NewContext Creates a new instance of IPluginContext to be passed into methods of interfaces which are reterieved via TryGetInterfaceT(T).
TryGetInterfaceT Determines whether interface T is implemented by the plug-in object (either directly or via a wrapper for legacy code) and if so then returns the object via instance argument.

See Also