diff options
Diffstat (limited to 'csharp/test/Ice/proxy')
-rw-r--r-- | csharp/test/Ice/proxy/MyDerivedClassAMDI.cs | 4 | ||||
-rw-r--r-- | csharp/test/Ice/proxy/MyDerivedClassI.cs | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/csharp/test/Ice/proxy/MyDerivedClassAMDI.cs b/csharp/test/Ice/proxy/MyDerivedClassAMDI.cs index fd130e6b6f1..772ed8d4ada 100644 --- a/csharp/test/Ice/proxy/MyDerivedClassAMDI.cs +++ b/csharp/test/Ice/proxy/MyDerivedClassAMDI.cs @@ -29,10 +29,10 @@ namespace ZeroC.Ice.Test.Proxy CancellationToken cancel) => new(_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 async ValueTask<IRelativeTestPrx> OpRelativeAsync( 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) |