Share via


IExtensionPartCollection<T> Interface

Definition

An interface for being notified of collection changes on extension parts implementing a certain contract.

public interface IExtensionPartCollection<T> : IDisposable
type IExtensionPartCollection<'T> = interface
    interface IDisposable
Public Interface IExtensionPartCollection(Of T)
Implements IDisposable

Type Parameters

T

Contract type that extension parts would implement.

Implements

Methods

Activate()

Starts the monitoring of the collection, this method should be called once the event handlers are registered.

GetCurrentSet()

Returns an immutable collection of current set of parts available.

Events

PartsAdded

An event that is raised when new parts are added to the collection.

PartsRemoved

An event that is raised when parts are removed from the collection due to service availability changes.

Applies to