summaryrefslogtreecommitdiff
path: root/csharp/test/Ice/plugin/BasePluginFail.cs
diff options
context:
space:
mode:
Diffstat (limited to 'csharp/test/Ice/plugin/BasePluginFail.cs')
-rw-r--r--csharp/test/Ice/plugin/BasePluginFail.cs48
1 files changed, 48 insertions, 0 deletions
diff --git a/csharp/test/Ice/plugin/BasePluginFail.cs b/csharp/test/Ice/plugin/BasePluginFail.cs
new file mode 100644
index 00000000000..b10a0a584b6
--- /dev/null
+++ b/csharp/test/Ice/plugin/BasePluginFail.cs
@@ -0,0 +1,48 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2015 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+using Ice;
+
+public abstract class BasePluginFail : Ice.Plugin
+{
+ public BasePluginFail(Ice.Communicator communicator)
+ {
+ _communicator = communicator;
+ _initialized = false;
+ _destroyed = false;
+ }
+
+ public bool isInitialized()
+ {
+ return _initialized;
+ }
+
+ public bool isDestroyed()
+ {
+ return _destroyed;
+ }
+
+ protected static void test(bool b)
+ {
+ if(!b)
+ {
+ throw new System.Exception();
+ }
+ }
+
+ public abstract void initialize();
+ public abstract void destroy();
+
+ protected Ice.Communicator _communicator;
+ protected bool _initialized;
+ protected bool _destroyed;
+ protected BasePluginFail _one;
+ protected BasePluginFail _two;
+ protected BasePluginFail _three;
+}