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/proxy/MyDerivedClassI.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/proxy/MyDerivedClassI.cs')
-rw-r--r-- | csharp/test/Ice/proxy/MyDerivedClassI.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/csharp/test/Ice/proxy/MyDerivedClassI.cs b/csharp/test/Ice/proxy/MyDerivedClassI.cs index 11c2fe5d00c..2ba5db5f250 100644 --- a/csharp/test/Ice/proxy/MyDerivedClassI.cs +++ b/csharp/test/Ice/proxy/MyDerivedClassI.cs @@ -3,6 +3,8 @@ using System.Collections.Generic; using System.Linq; using System.Threading; +using System.Threading.Tasks; + using ZeroC.Test; namespace ZeroC.Ice.Test.Proxy @@ -20,10 +22,10 @@ namespace ZeroC.Ice.Test.Proxy public IReadOnlyDictionary<string, string> GetContext(Current current, CancellationToken cancel) => _ctx!; - public bool IceIsA(string typeId, Current current, CancellationToken cancel) + public ValueTask<bool> IceIsAAsync(string typeId, Current current, CancellationToken cancel) { _ctx = current.Context; - return typeof(IMyDerivedClass).GetAllIceTypeIds().Contains(typeId); + return new(typeof(IMyDerivedClass).GetAllIceTypeIds().Contains(typeId)); } public IRelativeTestPrx OpRelative(ICallbackPrx callback, Current current, CancellationToken cancel) |