Cancel execution of command if it takes too long
问题 I am currently working on a piece of software that uses an assembly from a different department. I call a Method from this assembly like this: using (var connection = (IConnection) Factory.GetObject(typeof (IConnection))) The code used to work perfectly fine. But for the last few minutes it seemed like my program was doing nothing when I tried to launch it. Pressing pause while debugging showed me it got "stuck" at the line above. My guess is they're just doing some maintenance or something