Interface IObjectResolver
Will provide an implementation that will be used to create objects based on the plugin manifest file
Namespace: Sdl.Core.PluginFramework
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 |
---|---|---|
System.Type | objectType |
Returns
Type | Description |
---|---|
System.Boolean |
CreateObject(Type, XElement)
Create the object
Declaration
object CreateObject(Type objectType, XElement attributeElement = null)
Parameters
Type | Name | Description |
---|---|---|
System.Type | objectType | Object type |
System.Xml.Linq.XElement | attributeElement | Attribute from the PluginManifest file |
Returns
Type | Description |
---|---|
System.Object |