Some latency bug found

This commit is contained in:
2025-06-30 15:45:41 +03:00
parent af6e7b6547
commit 1b0f867653
5 changed files with 17 additions and 38 deletions
+1 -32
View File
@@ -9,42 +9,11 @@ namespace Example.Shared
[SharedObjectInterface]
public interface ILoadTest : IShared
{
int Next(int last);
Task<int> Next(int last);
int Last(int next);
void C();
void A();
Task AsyncTest(CancellationToken token = default);
}
partial class LoadTestProxy2
: RemoteObjectBase, ILoadTest
{
public LoadTestProxy2(int id, IRepresentationModule representationModule, IEndPointContext context)
: base(id, representationModule, context)
{
}
public void A(){
CallAsync(0).Wait();
}
public async System.Threading.Tasks.Task AsyncTest(System.Threading.CancellationToken token){
await CallAsync(1, cancellationToken : token);
}
public void C(){
CallAsync(2).Wait();
}
public System.Int32 Last(System.Int32 next){
return GetResultAsync<System.Int32>(3, new System.Object[] { next }).GetAwaiter().GetResult();
}
public System.Int32 Next(System.Int32 last){
return GetResultAsync<System.Int32>(4, new System.Object[] { last }).GetAwaiter().GetResult();
}
}
}