Gorgon
Show / Hide Table of Contents

Class EditorPlugInExtensions

Extension functionality relating to editor plug ins.

Inheritance
object
EditorPlugInExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Gorgon.Editor.PlugIns
Assembly: Gorgon.Editor.API.dll
Syntax
public static class EditorPlugInExtensions

Methods

| Edit this page View Source

GetDescription(PlugInType)

Function to retrieve a friendly description of a PlugInType value.

Declaration
public static string GetDescription(this PlugInType pluginType)
Parameters
Type Name Description
PlugInType pluginType

The plug in type to evaluate.

Returns
Type Description
string

The friendly description.

| Edit this page View Source

ValidateAndLoadAssemblies(GorgonMefPlugInCache, IEnumerable<string>, IGorgonLog)

Function to load all the specified plug in assemblies.

Declaration
public static IReadOnlyList<PlugInAssemblyState> ValidateAndLoadAssemblies(this GorgonMefPlugInCache pluginCache, IEnumerable<string> pluginAssemblyFiles, IGorgonLog log)
Parameters
Type Name Description
GorgonMefPlugInCache pluginCache

The plugin cache that will hold the plug in assembies.

IEnumerable<string> pluginAssemblyFiles

The list of plug in assembly paths to load.

IGorgonLog log

The application logging interface.

Returns
Type Description
IReadOnlyList<PlugInAssemblyState>

A list of PlugInAssemblyState objects for each plug in assembly loaded.

Exceptions
Type Condition
ArgumentNullException

Thrown when the pluginAssemblyFiles parameter is null

  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author