public Task CancelRemoteToken(Guid tokenId) { GrainCancellationToken gct; if (!_cancellationTokens.TryFind(tokenId, out gct)) { _logger.Value.Error(ErrorCode.CancellationTokenCancelFailed, $"Remote token cancellation failed: token with id {tokenId} was not found"); return(Task.CompletedTask); } return(gct.Cancel()); }