diff options
author | Jens Geyer <jensg@apache.org> | 2021-04-09 22:55:11 +0200 |
---|---|---|
committer | Jens Geyer <jensg@apache.org> | 2021-04-10 10:09:44 +0200 |
commit | 6228b907e0a01659515e8e4715c70f540fe07589 (patch) | |
tree | 4d19ecab0f81d5bab2e8048a0717b27ab06bc4a1 /lib/netstd | |
parent | 6583f4e52345c3b05a76f0b188836599628356e8 (diff) | |
download | thrift-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.cs | 10 | ||||
-rw-r--r-- | lib/netstd/Tests/Thrift.PublicInterfaces.Compile.Tests/Thrift5253.thrift | 4 |
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() } |