public void Start()
{
try
{
if (isConnected)
{
//monitorClient.StartAsync().ContinueWith(t => Update());
if (!monitorClient.IsStarted())
{
monitorClient.Start();
Update();
}
}
else
{
if (!monitor.IsStarted())
{
monitor.Start();
Update();
}
}
timer.Start();
}
catch (TimeoutException te)
{
#if DEBUG
view.ShowError(te.ToString());
#else
view.ShowError(te.Message);
#endif
}
catch (EndpointNotFoundException enfe)
{
#if DEBUG
view.ShowError(enfe.ToString());
#else
view.ShowError(enfe.Message);
#endif
}
}