diff options
author | Bernard Normier <bernard@zeroc.com> | 2021-01-14 12:12:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-14 12:12:47 -0500 |
commit | 05edde5bcae0e5ee6b31bdb9923a8e5bb80fede1 (patch) | |
tree | fae64c8758ed0226c7bc005ce9372c6a511b643c /csharp/test/Ice/operations/MyDerivedClassAMDI.cs | |
parent | Moved alias test from Slice to Ice test directory. (diff) | |
download | ice-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/operations/MyDerivedClassAMDI.cs')
-rw-r--r-- | csharp/test/Ice/operations/MyDerivedClassAMDI.cs | 18 |
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) |