mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-20 23:54:26 +08:00
19 lines
375 B
C#
19 lines
375 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; }
|
|
|
|
T? GetService<T>();
|
|
|
|
bool TryGetProperty<T>(string key, out T? value);
|
|
}
|