OpenIIoT.Core icon indicating copy to clipboard operation
OpenIIoT.Core copied to clipboard

Determine whether named Configuration instances are needed

Open jpdillingham opened this issue 8 years ago • 1 comments

Presently the Configuration model is as follows:

Dictionary<Type, List<object>>

The dictionary is keyed by asset type (something that implements IConfigurable<T>) and the value is a list of objects whose Type corresponds to the generic Type parameter of the IConfigurable interface.

Initially the intent was to allow binaries of a configurable type to be loaded and for the Plugin manager to create multiple instances of those Types, each with it's own configuration model.

In practice any use case requiring multiple instances can be covered within a single instance of the configurable type. The only benefit to having the Plugin manager manage this is that any threading would then be handled by the core instead of the plugin having to do it.

jpdillingham avatar Oct 02 '17 13:10 jpdillingham

@adamopan your thoughts would be appreciated

jpdillingham avatar Oct 02 '17 13:10 jpdillingham