Orleans.SyncWork
Orleans.SyncWork copied to clipboard
This package's intention is to expose an abstract base class to allow https://github.com/dotnet/orleans/ to work with long running CPU bound synchronous work, without becoming overloaded.
Given that ```csharp public sealed class GrainCancellationTokenSource : IDisposable ``` Should https://github.com/OrleansContrib/Orleans.SyncWork/blob/47bbfe19d8b474db3c8c84182e73ed9f67662382/src/Orleans.SyncWork/SyncWorker.cs#L44 become ```csharp using var cts = new GrainCancellationTokenSource(); return await Start(request, cts.Token); ``` ?
**Describe the bug** Catch exception when calling Start method ``` System.MissingMethodException: Method not found: 'System.Threading.Tasks.ValueTask`1 Orleans.Runtime.GrainReference.InvokeAsync(Orleans.Serialization.Invocation.IInvokable)'. at OrleansCodeGen.Orleans.SyncWork.Proxy_ISyncWorker`2.global::Orleans.SyncWork.ISyncWorker.Start(TRequest arg0) ```