IDesktopRuntime
이 콘텐츠는 아직 번역되지 않았습니다.
Namespace NetWiv.Runtime · Assembly NetWiv.Core
public interface IDesktopRuntimeThe platform boundary used by the platform-neutral application model.
Methods
Section titled “Methods”Dispatch
Section titled “Dispatch”public void Dispatch(Action action);EvaluateScript
Section titled “EvaluateScript”public void EvaluateScript(string webviewLabel, string script);public void EvaluateScript(string webviewLabel, string script, ulong documentId);public void Exit(int exitCode = 0);InvokeAsync
Section titled “InvokeAsync”public Task<JsonElement> InvokeAsync(string command, JsonElement args, CancellationToken cancellationToken = null);public Task<JsonElement> InvokeAsync(string command, JsonElement args, RuntimeCommandContext context, CancellationToken cancellationToken = null);InvokeResponseAsync
Section titled “InvokeResponseAsync”public Task<RuntimeInvokeResponse> InvokeResponseAsync(string command, JsonElement args, RuntimeCommandContext context, CancellationToken cancellationToken = null);ResolveDirectoryAsync
Section titled “ResolveDirectoryAsync”public Task<string> ResolveDirectoryAsync(int directory, string path, string identifier, CancellationToken cancellationToken = null);Resolves OS directories; the default preserves the legacy adapter behavior during migration.
public void Run(RuntimeContext context);