473,322 Members | 1,431 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

services and console apps...

Forgive me if this is in the wrong place, I couldn't find a suitable .net
services newsgroup to post in.

I read in services that they are designed to have no UI, but I'd like to
create one that can be run from the command line, and in doing so would act
as a console application for debugging purposes.

Is this concept legit, feasible, possible?
How would i go about approaching it?

Thanks for your time.
Dan.
Nov 20 '05 #1
2 921
Hi Daniel,
I read in services that they are designed to have no UI, but I'd like to
create one that can be run from the command line, and in doing so would act as a console application for debugging purposes.
This is absolutely fine approach, if not even recommended one. You analyze
the command line arguments and start as a console application or as a
service depending on them.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Daniel Bass" <I'm really @ sick of spam> wrote in message
news:uW**************@tk2msftngp13.phx.gbl... Forgive me if this is in the wrong place, I couldn't find a suitable .net
services newsgroup to post in.

I read in services that they are designed to have no UI, but I'd like to
create one that can be run from the command line, and in doing so would act as a console application for debugging purposes.

Is this concept legit, feasible, possible?
How would i go about approaching it?

Thanks for your time.
Dan.


Nov 20 '05 #2
Thanks for your reply.

I've created all the application code as a .Net class library, which exposes
Run, Stop, and a Refresh command which pauses the service while the
configuration is changed.

Is the idea to have the OnStart() OnEnd methods call these exposed
functions, and then to create a console app which calls the same functions
so that there's an output window for debug log data?

Or is the .Net approach different to this?

Thanks! =o)
Dan.

"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote
in message news:Ol**************@TK2MSFTNGP09.phx.gbl...
Hi Daniel,
I read in services that they are designed to have no UI, but I'd like to
create one that can be run from the command line, and in doing so would act as a console application for debugging purposes.
This is absolutely fine approach, if not even recommended one. You analyze
the command line arguments and start as a console application or as a
service depending on them.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Daniel Bass" <I'm really @ sick of spam> wrote in message
news:uW**************@tk2msftngp13.phx.gbl... Forgive me if this is in the wrong place, I couldn't find a suitable .net
services newsgroup to post in.

I read in services that they are designed to have no UI, but I'd like to
create one that can be run from the command line, and in doing so would act as a console application for debugging purposes.

Is this concept legit, feasible, possible?
How would i go about approaching it?

Thanks for your time.
Dan.

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Ken VdB | last post by:
Hi everyone, One of the things that really interested me about VS.net was that I can now create a console based app using VB. I have a number of QuickBASIC 4.5 apps which we are still using and...
2
by: Daniel Bass | last post by:
Forgive me if this is in the wrong place, I couldn't find a suitable .net services newsgroup to post in. I read in services that they are designed to have no UI, but I'd like to create one that...
5
by: Barry Mossman | last post by:
Hi, can I detect whether my class is running within the context of a Console application, vs say a WinForm's application ? also does anyone know whether the compiler or runtime is smart enough...
17
by: MumboJumbo | last post by:
Hi I have a really basic question hopefully some can help me with: Can you write a (i.e. one) C# project that works from the cmd line and gui? I seems if i write a GUI app it can't write to...
3
by: CJF | last post by:
I'm trying to build a web service via .NET remoting (without ASP.NET) using a pre-existing wsdl file. It doesn't seem to be a very straight-forward process, as SOAP exceptions keep popping up that...
2
by: sdstraub | last post by:
I have created 5 services in my project, in the 1st service I set servicestorun = array of all 5 services, I have a project installer with 5 service installers, one for each service. I have code...
0
by: serpius | last post by:
Hello Everyone, I am a beginner in VB.Net 2003 and am taking classes in beginning VB.net. To make a long story short, I am looking for real samples of coding in Console Apps. I am the type of...
4
by: Paul Hemans | last post by:
Hi newbie here. I am learning c++/cli I by writing console apps. When my apps finished they used to display a message at the bottom of the screen, something like "press any key to continue" so that...
0
by: shaun_wilde | last post by:
Hi all I have a windows service that spawns several console applications to perform work - I have however noticed that the console apps seem to only use processor 1 and 3 out of the 4 available...
5
by: =?Utf-8?B?UGFvbG8=?= | last post by:
I'm learning C# via console apps (to avoid getting bogged down in Windows stuff). I'm wondering how the OO paradigm would work. Say I'm developing 'classic' menu-driven apps where a menu gives a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.