mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-20 15:44:25 +08:00
21 lines
425 B
C#
21 lines
425 B
C#
namespace LanMountainDesktop.PluginSdk;
|
|
|
|
public interface IPluginRuntimeContext
|
|
{
|
|
PluginManifest Manifest { get; }
|
|
|
|
string PluginDirectory { get; }
|
|
|
|
string DataDirectory { get; }
|
|
|
|
IServiceProvider Services { get; }
|
|
|
|
IReadOnlyDictionary<string, object?> Properties { get; }
|
|
|
|
IPluginAppearanceContext Appearance { get; }
|
|
|
|
T? GetService<T>();
|
|
|
|
bool TryGetProperty<T>(string key, out T? value);
|
|
}
|