Hermod
A cross-platform, modular and fully GDPR-compliant email archival solution!
Loading...
Searching...
No Matches
PluginAttribute.cs
Go to the documentation of this file.
1using System;
2
4
8 [AttributeUsage(AttributeTargets.Class, Inherited = false)]
9 public class PluginAttribute: Attribute {
10
16 public PluginAttribute(string pluginName, string pluginVersion):
17 this(pluginName, pluginVersion, string.Empty, string.Empty, string.Empty) { }
18
27 public PluginAttribute(string pluginName, string pluginVersion, string authorName, string authorEmail, string pluginPage) {
28 PluginName = pluginName;
29 PluginVersion = pluginVersion;
30 AuthorEmail = authorEmail;
31 AuthorName = authorName;
32 PluginPage = pluginPage;
33 }
34
38 string PluginName { get; }
39
43 string PluginVersion { get; }
44
48 string AuthorName { get; set; }
49
53 string AuthorEmail { get; set; }
54
58 string PluginPage { get; set; }
59 }
60}
61
Plugin attribute, contains metadata about a given plugin.
string AuthorEmail
The plugin author's email.
string PluginPage
The plugin's home page URL.
string PluginName
The name of the plugin.
PluginAttribute(string pluginName, string pluginVersion, string authorName, string authorEmail, string pluginPage)
Constructs a new instance of this attribute.
PluginAttribute(string pluginName, string pluginVersion)
Constructs a new instance of this attribute.
string PluginVersion
The plugin's version.
string AuthorName
The name of the plugin's author.