Is there a way to speed up the exit of a console application using the c# api? If all I do is connect then disconnect it takes around 45 seconds for the console application to exit. I have tried directly calling dispose but its not helping. The VisualCronClient.exe disappears right away so I believe its possible for a quit exit.
static void Demo()
{
var conn = new VisualCronAPI.Connection
{
Address = "XXXXX",
UserName = "XXXXX",
PassWord = "XXXXX",
Port = 16444,
ClientType = VisualCron.ClientConnectionClass.ClientT.APIClient,
ClientVersion = "1.0",
ConnectionType = VisualCronAPI.Connection.ConnectionT.Remote,
ConnType = CommClientCore.Enums.ServiceType.SignalRService,
UseCompression = true
};
using (var client = new VisualCronAPI.Client())
{
using (var server = client.Connect(conn))
{
server.Disconnect();
client.DisconnectAll();
server.Dispose();
client.Dispose();
}
}
}