diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/IPlugin.cs | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/OpenSim/Framework/IPlugin.cs b/OpenSim/Framework/IPlugin.cs index 8a0b2b1..342918c 100644 --- a/OpenSim/Framework/IPlugin.cs +++ b/OpenSim/Framework/IPlugin.cs | |||
@@ -25,12 +25,24 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | ||
29 | |||
28 | namespace OpenSim.Framework | 30 | namespace OpenSim.Framework |
29 | { | 31 | { |
30 | /// <summary> | 32 | /// <summary> |
33 | /// Exception thrown if Initialise has been called, but failed. | ||
34 | /// </summary> | ||
35 | public class PluginNotInitialisedException : Exception | ||
36 | { | ||
37 | public PluginNotInitialisedException () : base() {} | ||
38 | public PluginNotInitialisedException (string msg) : base(msg) {} | ||
39 | public PluginNotInitialisedException (string msg, Exception e) : base(msg, e) {} | ||
40 | } | ||
41 | |||
42 | /// <summary> | ||
31 | /// This interface, describes a generic plugin | 43 | /// This interface, describes a generic plugin |
32 | /// </summary> | 44 | /// </summary> |
33 | public interface IPlugin | 45 | public interface IPlugin : System.IDisposable |
34 | { | 46 | { |
35 | /// <summary> | 47 | /// <summary> |
36 | /// Returns the plugin version | 48 | /// Returns the plugin version |
@@ -45,8 +57,8 @@ namespace OpenSim.Framework | |||
45 | string Name { get; } | 57 | string Name { get; } |
46 | 58 | ||
47 | /// <summary> | 59 | /// <summary> |
48 | /// Initialises the plugin (artificial constructor) | 60 | /// Default-initialises the plugin |
49 | /// </summary> | 61 | /// </summary> |
50 | void Initialise(); | 62 | void Initialise(); |
51 | } | 63 | } |
52 | } \ No newline at end of file | 64 | } |