Question
In this exercise you will develop a C# application that allows the user to handle a Windows service. Create a class named ServiceController. Create the
In this exercise you will develop a C# application that allows the user to handle a Windows service. Create a class named ServiceController. Create the following properties: CanShutDown, CanStop, MachineName, ServiceName, ServiceType, Status. Create the following methods: Start, Stop, Close, and ToString to return service controller object information in a nicely formatted string. Provide a constructor that allows the user to initialize ServiceController object information. Write a driver class to test the ServiceController class. The driver class (main class) interacts with the user and calls ServiceController properties and methods to handle the service. Provide interaction with user. Allow user to input service information and use service methods and properties. Output the results.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started