Interface IObjectResolver
Will provide an implementation that will be used to create objects based on the plugin manifest file
Namespace: SdlSdl.CorePluginFramework
Assembly: Sdl.Core.PluginFramework.dll
Syntax
public interface IObjectResolver
Methods
CanResolve(Type)
Based on the object type will return true of false based on the fact that it can resolve the object or not
Declaration
bool CanResolve(Type objectType)
Parameters
Type | Name | Description |
---|---|---|
Type | objectType |
Returns
Type | Description |
---|---|
bool |
CreateObject(Type, XElement)
Create the object
Declaration
object CreateObject(Type objectType, XElement attributeElement = null)
Parameters
Type | Name | Description |
---|---|---|
Type | objectType | Object type |
System.Xml.Linq.XElement | attributeElement | Attribute from the PluginManifest file |
Returns
Type | Description |
---|---|
object |