mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-16 12:18:09 +00:00
Issue #32: Added ExecutorHandle property to determine which expert will be used for execution command
This commit is contained in:
+20
-1
@@ -94,6 +94,25 @@ namespace MtApi
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private int _executorHandle;
|
||||
public int ExecutorHandle
|
||||
{
|
||||
get
|
||||
{
|
||||
lock (_locker)
|
||||
{
|
||||
return _executorHandle;
|
||||
}
|
||||
}
|
||||
set
|
||||
{
|
||||
lock (_locker)
|
||||
{
|
||||
_executorHandle = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -1827,7 +1846,7 @@ namespace MtApi
|
||||
|
||||
try
|
||||
{
|
||||
response = client.SendCommand((int)commandType, commandParameters);
|
||||
response = client.SendCommand((int)commandType, commandParameters, ExecutorHandle);
|
||||
}
|
||||
catch (CommunicationException ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user