summaryrefslogtreecommitdiff
path: root/csharp/test/Ice/operations/MyDerivedClassAMDI.cs
diff options
context:
space:
mode:
Diffstat (limited to 'csharp/test/Ice/operations/MyDerivedClassAMDI.cs')
-rw-r--r--csharp/test/Ice/operations/MyDerivedClassAMDI.cs18
1 files changed, 11 insertions, 7 deletions
diff --git a/csharp/test/Ice/operations/MyDerivedClassAMDI.cs b/csharp/test/Ice/operations/MyDerivedClassAMDI.cs
index 97910c0bf44..2f18ccf7be6 100644
--- a/csharp/test/Ice/operations/MyDerivedClassAMDI.cs
+++ b/csharp/test/Ice/operations/MyDerivedClassAMDI.cs
@@ -43,24 +43,28 @@ namespace ZeroC.Ice.Test.Operations
}
// Override the Object "pseudo" operations to verify the operation mode.
- public bool IceIsA(string id, Current current, CancellationToken cancel)
+ public ValueTask<bool> IceIsAAsync(string id, Current current, CancellationToken cancel)
{
TestHelper.Assert(current.IsIdempotent);
- return typeof(IMyDerivedClass).GetAllIceTypeIds().Contains(id);
+ return new(typeof(IMyDerivedClass).GetAllIceTypeIds().Contains(id));
}
- public void IcePing(Current current, CancellationToken cancel) => TestHelper.Assert(current.IsIdempotent);
+ public ValueTask IcePingAsync(Current current, CancellationToken cancel)
+ {
+ TestHelper.Assert(current.IsIdempotent);
+ return default;
+ }
- public IEnumerable<string> IceIds(Current current, CancellationToken cancel)
+ public ValueTask<IEnumerable<string>> IceIdsAsync(Current current, CancellationToken cancel)
{
TestHelper.Assert(current.IsIdempotent);
- return typeof(IMyDerivedClass).GetAllIceTypeIds();
+ return new(typeof(IMyDerivedClass).GetAllIceTypeIds());
}
- public string IceId(Current current, CancellationToken cancel)
+ public ValueTask<string> IceIdAsync(Current current, CancellationToken cancel)
{
TestHelper.Assert(current.IsIdempotent);
- return typeof(IMyDerivedClass).GetIceTypeId()!;
+ return new(typeof(IMyDerivedClass).GetIceTypeId()!);
}
public ValueTask ShutdownAsync(Current current, CancellationToken cancel)