Interface IConfiguredDeviceTypeResolver
A concrete device type resolver for configured device types.
public interface IConfiguredDeviceTypeResolver
Methods
ResolveType(Type, IConfigurationSection, string)
Determines the concrete type to use for a configured device.
Type ResolveType(Type baseDeviceType, IConfigurationSection configurationSection, string typeValue)
Parameters
baseDeviceTypeTypeThe base Type for the registered device type.
configurationSectionIConfigurationSectionThe optional configuration section containing settings for this device. This will be null for device type registrations that do not use configuration settings.
typeValuestringThe Type setting value. This will be null if the setting does not exist.
Returns
- Type
The concrete type to use.
Exceptions
- ArgumentNullException
baseDeviceTypeis null.- InvalidOperationException
The type could not be determined.