콘텐츠로 이동

IDesktopRuntime

이 콘텐츠는 아직 번역되지 않았습니다.

Namespace NetWiv.Runtime · Assembly NetWiv.Core

public interface IDesktopRuntime

The platform boundary used by the platform-neutral application model.

public void Dispatch(Action action);
public void EvaluateScript(string webviewLabel, string script);
public void EvaluateScript(string webviewLabel, string script, ulong documentId);
public void Exit(int exitCode = 0);
public Task<JsonElement> InvokeAsync(string command, JsonElement args, CancellationToken cancellationToken = null);
public Task<JsonElement> InvokeAsync(string command, JsonElement args, RuntimeCommandContext context, CancellationToken cancellationToken = null);
public Task<RuntimeInvokeResponse> InvokeResponseAsync(string command, JsonElement args, RuntimeCommandContext context, CancellationToken cancellationToken = null);
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);