Files
LanMountainDesktop/airapp/LanMountainDesktop.PluginSdk/IPluginRuntimeContext.cs
2026-08-11 19:41:54 +08:00

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);
}