1
0
mirror of https://github.com/akpaevj/onecmonitor.git synced 2026-06-11 20:42:53 +02:00
Files
onecmonitor/oneswiss-agent/Oscript/OscriptIntegrationGlobalContext.cs

15 lines
545 B
C#

using OneScript.Contexts;
using ScriptEngine.Machine.Contexts;
namespace OneSwiss.Agent.Oscript;
[GlobalContext(Category = "Методы интеграции с OneSwiss", ManualRegistration = true)]
public class OscriptIntegrationGlobalContext(OscriptIntegrationContext context)
: GlobalContextBase<OscriptIntegrationGlobalContext>
{
[ContextMethod("ПолучитьКонтекстИнтеграцииOneSwiss", "GetOneSwissIntegrationContext")]
public OscriptIntegrationContext GetContext()
{
return context;
}
}