Updated test application for working with MtApi (MT5) version 1.0.10

This commit is contained in:
vdemydiuk
2016-10-17 11:57:54 +03:00
parent 7fec3da7bc
commit a63e628124
9 changed files with 527 additions and 267 deletions
+12 -12
View File
@@ -180,18 +180,18 @@ namespace MTApiService
MtResponse result;
if (_proxy == null)
{
Log.Error("SendCommand: Proxy is not defined.");
throw new CommunicationException("Proxy is not defined.");
}
if (_isConnected == false)
{
Log.Error("SendCommand: Client is not connected.");
throw new CommunicationException("Client is not connected.");
}
if (_proxy == null)
{
Log.Error("SendCommand: Proxy is not defined.");
throw new CommunicationException("Proxy is not defined.");
}
try
{
result = _proxy.SendCommand(new MtCommand(commandType, parameters));
@@ -213,18 +213,18 @@ namespace MTApiService
{
Log.Debug("GetQuotes: begin.");
if (_proxy == null)
{
Log.Warn("GetQuotes: end. _proxy is not defined.");
return null;
}
if (_isConnected == false)
{
Log.Warn("GetQuotes: end. Client is not connected.");
return null;
}
if (_proxy == null)
{
Log.Warn("GetQuotes: end. _proxy is not defined.");
return null;
}
List<MtQuote> result;
try