summaryrefslogtreecommitdiff
path: root/lib/netstd
diff options
context:
space:
mode:
authorJens Geyer <jensg@apache.org>2021-04-09 22:55:11 +0200
committerJens Geyer <jensg@apache.org>2021-04-10 10:09:44 +0200
commit6228b907e0a01659515e8e4715c70f540fe07589 (patch)
tree4d19ecab0f81d5bab2e8048a0717b27ab06bc4a1 /lib/netstd
parent6583f4e52345c3b05a76f0b188836599628356e8 (diff)
downloadthrift-6228b907e0a01659515e8e4715c70f540fe07589.tar.gz
THRIFT-5395 inconsistent treatment of methods ending in "Async"
Client: netstd Patch: Jens Geyer This closes #2372
Diffstat (limited to 'lib/netstd')
-rw-r--r--lib/netstd/Tests/Thrift.PublicInterfaces.Compile.Tests/Impl/Thrift5253/MyService.cs10
-rw-r--r--lib/netstd/Tests/Thrift.PublicInterfaces.Compile.Tests/Thrift5253.thrift4
2 files changed, 14 insertions, 0 deletions
diff --git a/lib/netstd/Tests/Thrift.PublicInterfaces.Compile.Tests/Impl/Thrift5253/MyService.cs b/lib/netstd/Tests/Thrift.PublicInterfaces.Compile.Tests/Impl/Thrift5253/MyService.cs
index 342dd4ad0..1b8d99f0b 100644
--- a/lib/netstd/Tests/Thrift.PublicInterfaces.Compile.Tests/Impl/Thrift5253/MyService.cs
+++ b/lib/netstd/Tests/Thrift.PublicInterfaces.Compile.Tests/Impl/Thrift5253/MyService.cs
@@ -51,6 +51,16 @@ namespace Thrift.PublicInterfaces.Compile.Tests.Impl.Thrift5253
return Task.FromResult(new InternalStructs() { Foo = input.Foo });
}
+ public Task TestAsyncAsync(CancellationToken cancellationToken = default)
+ {
+ return Task.CompletedTask;
+ }
+
+ public Task TestXsyncAsync(CancellationToken cancellationToken = default)
+ {
+ return Task.CompletedTask;
+ }
+
public Task<WorksRslt> WorksAsync(WorksArrrgs input, CancellationToken cancellationToken = default)
{
return Task.FromResult(new WorksRslt() { Foo = input.Foo });
diff --git a/lib/netstd/Tests/Thrift.PublicInterfaces.Compile.Tests/Thrift5253.thrift b/lib/netstd/Tests/Thrift.PublicInterfaces.Compile.Tests/Thrift5253.thrift
index ee3df9b79..224ac8574 100644
--- a/lib/netstd/Tests/Thrift.PublicInterfaces.Compile.Tests/Thrift5253.thrift
+++ b/lib/netstd/Tests/Thrift.PublicInterfaces.Compile.Tests/Thrift5253.thrift
@@ -42,5 +42,9 @@ service MyService{
AsyncProcessor AsyncProcessor ( 1: AsyncProcessor foo)
Client Client ( 1: Client foo)
IAsync IAsync ( 1: IAsync foo)
+
+ // inconsistent treatment of methods ending in "Async"
+ void TestXsync()
+ void TestAsync()
}