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 /cpp/src/slice2cs/Gen.cpp | |
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 'cpp/src/slice2cs/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cs/Gen.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/src/slice2cs/Gen.cpp b/cpp/src/slice2cs/Gen.cpp index be116e3791f..66ce32bef3c 100644 --- a/cpp/src/slice2cs/Gen.cpp +++ b/cpp/src/slice2cs/Gen.cpp @@ -2773,13 +2773,13 @@ Slice::Gen::DispatcherVisitor::visitInterfaceDefStart(const InterfaceDefPtr& p) } _out << sp; - _out << nl << "string ZeroC.Ice.IObject.IceId(" + _out << nl << "global::System.Threading.Tasks.ValueTask<string> ZeroC.Ice.IObject.IceIdAsync(" << "ZeroC.Ice.Current current, " - << "global::System.Threading.CancellationToken cancel) => _iceTypeId;"; + << "global::System.Threading.CancellationToken cancel) => new(_iceTypeId);"; _out << sp; - _out << nl << "global::System.Collections.Generic.IEnumerable<string> " - << "ZeroC.Ice.IObject.IceIds(ZeroC.Ice.Current current, " - << "global::System.Threading.CancellationToken cancel) => _iceAllTypeIds;"; + _out << nl << "global::System.Threading.Tasks.ValueTask<global::System.Collections.Generic.IEnumerable<string>> " + << "ZeroC.Ice.IObject.IceIdsAsync(ZeroC.Ice.Current current, " + << "global::System.Threading.CancellationToken cancel) => new(_iceAllTypeIds);"; _out << sp; _out << nl << "global::System.Threading.Tasks.ValueTask<ZeroC.Ice.OutgoingResponseFrame> ZeroC.Ice.IObject" |