Click here to Skip to main content
15,921,531 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I've found this :
Computer Temperatures, Fan Speeds, etc.[^]

And I want to build this same app but as a service. Could you help me please! (With Visual Studio 2015 C#).

What I have tried:

And I want to build this same app but as a service. Could you help me please! (With Visual Studio 2015 C#).
Posted
Updated 24-Oct-18 19:27pm
v2

You posted this in the C# forum last week: Application service with C#. - C# Discussion Boards[^]

Then, you were told that Services can't have a UI so it's unlikely to work anyway, but that we would need a lot more information on exactly what you expect the service to do (and thus what the application currently does) in order to help you further.

None of that has changed ...
 
Share this answer
 
Comments
Member 14019735 24-Oct-18 9:32am    
Please check the link i've found. And you gonna know what I'm trying to do. thanks
OriginalGriff 24-Oct-18 9:45am    
How many times do you have to be told that a service does not have an interface, and cannot interact directly with the user in any way, shape, or form?

So "convert an app" - which is almost entirely user interface - "to a service" - which can't have one at all - doesn't make any sense on it's own.

And we have no idea what exactly you are trying to do - so we can't tell you how to do something that is basically impossible!
So perhaps you could stop reiterating the same thing over and over and start giving us information?
So basically you need to split this application into two separate applications

1. Data collection: this would be on the "server", defined as the machine that is being monitored which will be sharing that information with a separate application for viewing, either locally or over a network

2. Viewing Application: this would be the client application which will provide the UI. In all reality this could be in Windows Forms, Universal Windows, Mobile application, or a web application. It's job is to connect to the Data Collection Service on a particular machine and retrieve the values.

This all comes down to Separation of Concerns. You will need to deduce where to make the split in the original application, and then take make that information available using any number of methods.
How you do it is going to be dependent upon exactly what you want to do. As you have experienced in your other threads, being vague with your intentions will lead you nowhere.

My recommendation would be to write up a plan on everything you want these 2 applications to be able to do, figure out what needs to be done to accomplish this, and then ask SPECIFIC questions on the problems you encounter.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900