Files

21 lines
425 B
C#
Raw Permalink Normal View History

2026-03-12 09:22:03 +08:00
namespace LanMountainDesktop.PluginSdk;
public interface IPluginRuntimeContext
{
PluginManifest Manifest { get; }
string PluginDirectory { get; }
string DataDirectory { get; }
IServiceProvider Services { get; }
IReadOnlyDictionary<string, object?> Properties { get; }
2026-03-20 22:37:37 +08:00
IPluginAppearanceContext Appearance { get; }
2026-03-12 09:22:03 +08:00
T? GetService<T>();
bool TryGetProperty<T>(string key, out T? value);
}