IPluginCollection Interface

A collection of IPluginContainer items.

Definition

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

Properties

Errors Errors being collected for plug-ins which instances cannot be created or initialized.
SessionProfile Instance of ISessionProfile the collection belongs to.
Version Version of the collection. It is increased each time when an item is added or removed. Dependent components may track the version in order to refresh themselves whenever that is required.

Methods

Contains Determines whether an item with the specified value of PublicGuid is present in the collection.
CreateView(PredicateIPluginContainer, IComparerIPluginAssembly)

Creates a new view for this collection of plug-ins with the specified order of items. When comparer is , default order of items is used.

  Tip

The created view may be stored in any object associated with SessionProfile - for example, in an implementation of IPlugin. The view will be refreshed automatically after any change of Version.

  Important

Due to synchronization, the created view must not be used in application scope, i.e., it must not be stored either in implementations of IPluginSingleton or in IPluginStorage.

CreateView(SelectPluginContainers, IComparerIPluginAssembly)

Creates a new view for this collection of plug-ins with order of items determined by the specified filter.

  Tip

The created view may be stored in any object associated with SessionProfile - for example, in an implementation of IPlugin. The view will be refreshed automatically after any change of Version.

  Important

Due to synchronization, the created view must not be used in application scope, i.e., it must not be stored either in implementations of IPluginSingleton or in IPluginStorage.

TryGet Attempts to retrieve all items with the specified value of PublicGuid from in the collection.

See Also