diff options
author | Benoit Foucher <benoit@zeroc.com> | 2016-08-16 16:37:18 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2016-08-16 16:37:18 +0200 |
commit | 88293201e566c982830482601e878ff4bc643782 (patch) | |
tree | b0ffc2633b8404cde06d4786927b1f6b63024849 /csharp/test/Slice/keyword/Client.cs | |
parent | Fixed ICE-7273 - C# AMI test failure (diff) | |
download | ice-88293201e566c982830482601e878ff4bc643782.tar.bz2 ice-88293201e566c982830482601e878ff4bc643782.tar.xz ice-88293201e566c982830482601e878ff4bc643782.zip |
C# mapping changes
- user exceptions are no longer checked on the server side (ICE-6980)
- support for ["marshaled-result"] metadata
- AMD operations now return a Task
- improved dispatch interceptors
- PropertiesAdminI::setProperties impl. now invokes callbacks synchronously
Diffstat (limited to 'csharp/test/Slice/keyword/Client.cs')
-rw-r--r-- | csharp/test/Slice/keyword/Client.cs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/csharp/test/Slice/keyword/Client.cs b/csharp/test/Slice/keyword/Client.cs index 603ccb30043..e2835a837ba 100644 --- a/csharp/test/Slice/keyword/Client.cs +++ b/csharp/test/Slice/keyword/Client.cs @@ -9,6 +9,7 @@ using System; using System.Collections.Generic; +using System.Threading.Tasks; public class Client { @@ -22,10 +23,10 @@ public class Client public sealed class caseI : @abstract.caseDisp_ { - public override void - catchAsync(int @checked, Action<int> response, Action<Exception> exception, Ice.Current current__) + public override Task<int> + catchAsync(int @checked, Ice.Current current__) { - response(0); + return Task<int>.FromResult(0); } } @@ -46,10 +47,10 @@ public class Client public sealed class explicitI : @abstract.explicitDisp_ { - public override void - catchAsync(int @checked, Action<int> response, Action<Exception> exception, Ice.Current current__) + public override Task<int> + catchAsync(int @checked, Ice.Current current__) { - response(0); + return Task<int>.FromResult(0); } public override void @default(Ice.Current current) |