public override void DoWork() { //Debugger.Launch(); _patientManager = new PatientManager(); CLRCommunicationProxy proxy = GetCommunicationProxy() as CLRCommunicationProxy; proxy.RegisterCommandHandler(90001, new PatientCommandHandler(_patientManager)); Console.WriteLine("Do work!"); }