Skip to content

Commit 1d185a3

Browse files
committed
Новый релиз
1 parent 47d3ffd commit 1d185a3

6 files changed

Lines changed: 495 additions & 140 deletions
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using ScriptEngine.Machine.Contexts;
2+
3+
namespace oscs
4+
{
5+
[ContextClass ("КсРежимКлиента", "CsClientMode")]
6+
public class CsClientMode : AutoContext<CsClientMode>
7+
{
8+
private int m_none = 0; // 0 Клиент является экземпляром класса из библиотеки OneScriptClientServer.
9+
private int m_native = 1; // 1 Клиент является экземпляром класса <B>TCPСоединение&nbsp;/&nbsp;TCPConnection</B> из библиотеки односкрипта.
10+
private int m_browser = 2; // 2 Подключение к серверу из какого либо браузера по протоколу http.
11+
12+
[ContextProperty("Браузер", "Browser")]
13+
public int Browser
14+
{
15+
get { return m_browser; }
16+
}
17+
18+
[ContextProperty("Нативный", "Native")]
19+
public int Native
20+
{
21+
get { return m_native; }
22+
}
23+
24+
[ContextProperty("Отсутствие", "None")]
25+
public int None
26+
{
27+
get { return m_none; }
28+
}
29+
}
30+
}

0 commit comments

Comments
 (0)