1
0
mirror of https://github.com/akpaevj/onecmonitor.git synced 2025-11-27 22:28:17 +02:00
Files
onecmonitor/oneswiss-agent/Oscript/OscriptIntegrationContext.cs

25 lines
1.2 KiB
C#

using OneScript.Contexts;
using OneSwiss.Agent.Services;
using ScriptEngine.Machine.Contexts;
namespace OneSwiss.Agent.Oscript;
[ContextClass("КонтекстИнтеграцииOneSwiss", "OneSwissIntegrationContext")]
public class OscriptIntegrationContext(
V8PlatformsProvider platformsProvider,
V8ServicesProvider servicesProvider,
RasHolder rasHolder,
EdtInstallationsProvider edtInstallationsProvider) : AutoContext<OscriptIntegrationContext>
{
[ContextProperty("ПровайдерПлатформ", "PlatformsProvider", CanWrite = false)]
public V8PlatformsProviderWrapper PlatformsProvider { get; } = new(platformsProvider);
[ContextProperty("ПровайдерСлужб", "ServicesProvider", CanWrite = false)]
public V8ServicesProviderWrapper ServicesProvider { get; } = new(servicesProvider);
[ContextProperty("МенеджерRas", "RasManager", CanWrite = false)]
public RasHolderWrapper RasHolder { get; } = new(rasHolder);
[ContextProperty("ПровайдерИнсталляцийEdt", "EdtInstallationsProvider", CanWrite = false)]
public EdtInstallationsProviderWrapper EdtInstallationsProvider { get; } = new(edtInstallationsProvider);
}