mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-24 02:30:13 +00:00
Support cancellation of NodeServices invocations
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
using System;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Microsoft.AspNetCore.NodeServices.HostingModels
|
||||
{
|
||||
public interface INodeInstance : IDisposable
|
||||
{
|
||||
Task<T> InvokeExportAsync<T>(string moduleName, string exportNameOrNull, params object[] args);
|
||||
Task<T> InvokeExportAsync<T>(CancellationToken cancellationToken, string moduleName, string exportNameOrNull, params object[] args);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user