基于WebView2实现的Win11桌面框架,利用插件自定义
Moli
2026-05-02 660389980024de0dba1a9fb117bed553b4fb9cb2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System.Text.Json;
using Moli.Desktop.Plugins;
 
namespace Moli.Desktop.WebView;
 
public sealed record PluginBridgeContext
{
    public required string HostId { get; init; }
    public required PluginManifest Manifest { get; init; }
    public required PluginRuntimeBridgeInfo RuntimeInfo { get; init; }
    public JsonElement Config { get; init; }
}
 
public sealed record PluginRuntimeBridgeInfo
{
    public required string PluginId { get; init; }
    public required PluginType PluginType { get; init; }
    public required string HostId { get; init; }
    public bool IsEditMode { get; init; }
    public bool IsVisible { get; init; } = true;
}