summaryrefslogtreecommitdiff
path: root/csharp/test/Ice/defaultServant/MyObjectI.cs
diff options
context:
space:
mode:
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)