Class ExtensionsRepository
Inheritance
System.Object
ExtensionsRepository
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Sdl.Core.PluginFramework.dll
Syntax
public sealed class ExtensionsRepository
Properties
Instance
Declaration
public static ExtensionsRepository Instance { get; }
Property Value
Methods
AddExtension<TResult>(IExtension, ExtensionArguments, Func<IExtension, Object, ExtensionArguments, Object>)
Declaration
public TResult AddExtension<TResult>(IExtension extension, ExtensionArguments arguments, Func<IExtension, object, ExtensionArguments, object> instanceCreator)
where TResult : class
Parameters
Returns
Type Parameters
FirstOrDefault(Func<ExtensionStoreItem, Boolean>)
Declaration
public ExtensionStoreItem FirstOrDefault(Func<ExtensionStoreItem, bool> predicate)
Parameters
Returns
FirstOrDefault(Object)
Declaration
public ExtensionStoreItem FirstOrDefault(object extensionInstanceReference)
Parameters
Type |
Name |
Description |
System.Object |
extensionInstanceReference |
|
Returns
GetAssignableInstanceOrDefault<TResult>(IExtension)
Declaration
public TResult GetAssignableInstanceOrDefault<TResult>(IExtension extension)
where TResult : class
Parameters
Returns
Type Parameters
GetAssignableInstanceOrDefault<TResult>(Type, Type)
Declaration
public TResult GetAssignableInstanceOrDefault<TResult>(Type extensionAttributeType, Type extensionType)
where TResult : class
Parameters
Type |
Name |
Description |
System.Type |
extensionAttributeType |
|
System.Type |
extensionType |
|
Returns
Type Parameters
GetAssignableInstanceOrDefault<TAttribute, TExtensionType, TResult>()
Declaration
public TResult GetAssignableInstanceOrDefault<TAttribute, TExtensionType, TResult>()
where TAttribute : ExtensionAttribute where TResult : class
Returns
Type Parameters
Name |
Description |
TAttribute |
|
TExtensionType |
|
TResult |
|