diff options
Diffstat (limited to 'csharp/test/Ice/defaultServant/MyObjectI.cs')
-rw-r--r-- | csharp/test/Ice/defaultServant/MyObjectI.cs | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/csharp/test/Ice/defaultServant/MyObjectI.cs b/csharp/test/Ice/defaultServant/MyObjectI.cs new file mode 100644 index 00000000000..8c80bb5e3a5 --- /dev/null +++ b/csharp/test/Ice/defaultServant/MyObjectI.cs @@ -0,0 +1,44 @@ +// ********************************************************************** +// +// 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. +// +// ********************************************************************** + + +public sealed class MyObjectI : Test.MyObjectDisp_ +{ + public override void + ice_ping(Ice.Current current) + { + string name = current.id.name; + + if(name == "ObjectNotExist") + { + throw new Ice.ObjectNotExistException(); + } + else if(name == "FacetNotExist") + { + throw new Ice.FacetNotExistException(); + } + } + + public override string + getName(Ice.Current current) + { + string name = current.id.name; + + if(name == "ObjectNotExist") + { + throw new Ice.ObjectNotExistException(); + } + else if(name == "FacetNotExist") + { + throw new Ice.FacetNotExistException(); + } + + return name; + } +} |