You've already forked onecmonitor
mirror of
https://github.com/akpaevj/onecmonitor.git
synced 2026-06-11 20:42:53 +02:00
15 lines
545 B
C#
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;
|
|
}
|
|
} |