summaryrefslogtreecommitdiff
path: root/csharp/test/Ice/defaultServant/MyObjectI.cs
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2021-01-14 12:12:47 -0500
committerGitHub <noreply@github.com>2021-01-14 12:12:47 -0500
commit05edde5bcae0e5ee6b31bdb9923a8e5bb80fede1 (patch)
treefae64c8758ed0226c7bc005ce9372c6a511b643c /csharp/test/Ice/defaultServant/MyObjectI.cs
parentMoved alias test from Slice to Ice test directory. (diff)
downloadice-before_streamline.tar.bz2
ice-before_streamline.tar.xz
ice-before_streamline.zip
Switch to Async skeletons in Ice core (#1240)before_streamline
Diffstat (limited to 'csharp/test/Ice/defaultServant/MyObjectI.cs')
-rw-r--r--csharp/test/Ice/defaultServant/MyObjectI.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/csharp/test/Ice/defaultServant/MyObjectI.cs b/csharp/test/Ice/defaultServant/MyObjectI.cs
index a7a0769ab91..40163662120 100644
--- a/csharp/test/Ice/defaultServant/MyObjectI.cs
+++ b/csharp/test/Ice/defaultServant/MyObjectI.cs
@@ -1,12 +1,13 @@
// Copyright (c) ZeroC, Inc. All rights reserved.
using System.Threading;
+using System.Threading.Tasks;
namespace ZeroC.Ice.Test.DefaultServant
{
public sealed class MyObject : IMyObject
{
- public void IcePing(Current current, CancellationToken cancel)
+ public ValueTask IcePingAsync(Current current, CancellationToken cancel)
{
string name = current.Identity.Name;
@@ -14,6 +15,7 @@ namespace ZeroC.Ice.Test.DefaultServant
{
throw new ObjectNotExistException();
}
+ return default;
}
public string GetName(Current current, CancellationToken cancel)