Class Plugins
Helper functions for plugin management
Inheritance
System.Object
Plugins
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: DuetControlServer.Utility
Assembly: DuetControlServer.dll
Syntax
public static class Plugins
Methods
CheckVersion(String, String)
Check if the actual versino fufills a required version
Declaration
public static bool CheckVersion(string actual, string required)
Parameters
Type | Name | Description |
---|---|---|
System.String | actual | Actual version |
System.String | required | Required version |
Returns
Type | Description |
---|---|
System.Boolean | Whether the actual version fulfills teh requirement |
StartPlugins(IEnumerable<String>)
Start the plugins
Declaration
public static Task StartPlugins(IEnumerable<string> plugins)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.String> | plugins | List of plugins to start |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | Asynchronous task |
StopPlugins()
Stop the running plugins
Declaration
public static Task<IEnumerable<string>> StopPlugins()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<System.String>> | List of stopped plugins |