Question:
You develop a service application named FileService. You deploy the service application to multiple servers on your network. You implement the following code segment. (Line numbers are included for reference only.)
01 public :
02 void StartService(String= serverName){ 04 ServiceController= crtl = gcnew
05 ServiceController("FileService");
06 if (crtl->Status == ServiceControllerStatus::Stopped){}
07 }
You need to develop a routine that will start FileService if it stops. The routine must start FileService on the server identified by the serverName input parameter.
Which two lines of code should you add to the code segment? (Each correct answer presents part of the solution. Choose two.)
crtl.ServiceName = serverName;
B
"A Composite Solution With Just One Click" - Certification Guaranteed 281 Microsoft 70-536 Exam
crtl.ExecuteCommand(0);
C
crtl.MachineName = serverName;
D
crtl.Continue();
E
crtl.Start();
F
rtl.Site.Name = serverName;