InvokeContext
이 콘텐츠는 아직 번역되지 않았습니다.
Namespace NetWiv · Assembly NetWiv.Core
public sealed class InvokeContextProperties
Section titled “Properties”public AppHandle App { get; }DocumentId
Section titled “DocumentId”public ulong DocumentId { get; }IsTrusted
Section titled “IsTrusted”public bool IsTrusted { get; }Request
Section titled “Request”public Request Request { get; }public RuntimeCommandScope Scope { get; }Services
Section titled “Services”public IServiceProvider Services { get; }The service scope created for this invocation, or an empty provider when the app has no service provider. Scoped services are disposed when the command completes.
Source
Section titled “Source”public Uri Source { get; }WebviewLabel
Section titled “WebviewLabel”public string WebviewLabel { get; }WindowLabel
Section titled “WindowLabel”public string WindowLabel { get; }Methods
Section titled “Methods”AddResource
Section titled “AddResource”public uint AddResource<T>(T resource);Registers a resource owned by the invoking document, or by the app for trusted backend calls.
InvokePlatformAsync
Section titled “InvokePlatformAsync”public ValueTask<RuntimeInvokeResponse> InvokePlatformAsync(string command, JsonElement args, CancellationToken cancellationToken = null);Runs a platform operation after the plugin command passed the ACL check.
public State<T> State<T>();