Hi, I've created a new, simple console application, which connects to VisualCron by .NET API and later on disconnects. However, the ConsoleApplication doesn't exit. Could you tell me how to fix it? Here is the code:
static void Main(string[] args)
{
var c = new Client();
c.LogToFile = false;
var conn = new Connection
{
Address = "54.217.38.228",
UseADLogon = false
};
conn.UserName = "admin";
conn.PassWord = "";
conn.Port = 16444;
conn.ConnectionType = Connection.ConnectionT.Remote;
var s = c.Connect(conn, true);
s.Disconnect();
s.Dispose();
Console.WriteLine("The application should close now... but doesn't.");
return;
}
Edited by moderator
2016-05-24T09:12:59Z
|
Reason: Not specified