Fazer uma PerguntaFazer uma Pergunta
 

RespondidoRun application as a Service

  • terça-feira, 16 de janeiro de 2007 6:18thukralz Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     

    What type of project it should be to run as a service??

    Say if I create something and want to run it as a service how to do it and some of my other application has to use that service ?? how does that work ??

Respostas

  • terça-feira, 16 de janeiro de 2007 9:30rauhanlinnake Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido
    In Visual Studio 2005, there is a Windows Service Project template, which can be used to create Windows Services.
  • terça-feira, 16 de janeiro de 2007 17:27Sean Hederman Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido

    Yes, so you'd create a Windows Service as rauhanlinnake said, and expose the WCF endpoints from this service.

  • terça-feira, 16 de janeiro de 2007 18:40RizwanSharpMVPMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido

    Neither Windows Services nor INter Process Communication is dependant on .Net 3.0, You can create such application on Windows 2000 or later.

    Windows Services just need an NT based Widows Version and everybody knows that all versions including Windows 2000 and above are based on NT Technlogy.

    You can Create a Windows Service in .Net 1X or later.

    You can also make many application communicate with each other at runtime using .Net remoting again this was available from .Net 1.X and later.

    So I dont know why these other guys have made it dependant on WCF?

    You can simply study about .Net remoting and you can develop a complete solution in .Net 2.0 too.

    Best Regards,

    Rizwan aka RizwanSharp

     

  • terça-feira, 16 de janeiro de 2007 19:21Ross Dargan Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido

    take a peek at my blog, I cover both services and wcf:-

    http://blog.the-dargans.co.uk/2007/01/windows-services.html

    http://blog.the-dargans.co.uk/2007/01/wcf-in-net-3.html

    Beware that lots of the tools surrounding wcf are still in beta - however it is still a hell of a lot easier than using sockets!

    Ross :)

Todas as Respostas

  • terça-feira, 16 de janeiro de 2007 9:30rauhanlinnake Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido
    In Visual Studio 2005, there is a Windows Service Project template, which can be used to create Windows Services.
  • terça-feira, 16 de janeiro de 2007 16:32EricBrown Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     


    you need a mechanism for the two apps to communcate... usually socket communication, but it can be as cheezy as app a writes c:\bob.xml., and then service a consumes it and deletes it.

    Cal-


  • terça-feira, 16 de janeiro de 2007 16:39thukralz Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    This application is a WCF and I'm sure there will be better ways in .NET 3.0 to do stuff..
  • terça-feira, 16 de janeiro de 2007 17:27Sean Hederman Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido

    Yes, so you'd create a Windows Service as rauhanlinnake said, and expose the WCF endpoints from this service.

  • terça-feira, 16 de janeiro de 2007 17:53thukralz Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     

    I installed .NET 3.0 and WCF extension for Visual Studio and I have choices under .NET 3.0 is

    WCF Service Library (A project to define and implement a WCF service library)....Just confirming the project should be of this type..

  • terça-feira, 16 de janeiro de 2007 18:01Sean Hederman Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     

    No, you want it to run as a service, so you would choose Windows Service. What you should do, is add the same references that WCF Service Library has. Alternatively you could create the WCF Service Library separate from the Windows Service, and just use it in the service. Either way, you will need Windows Service.

  • terça-feira, 16 de janeiro de 2007 18:40RizwanSharpMVPMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido

    Neither Windows Services nor INter Process Communication is dependant on .Net 3.0, You can create such application on Windows 2000 or later.

    Windows Services just need an NT based Widows Version and everybody knows that all versions including Windows 2000 and above are based on NT Technlogy.

    You can Create a Windows Service in .Net 1X or later.

    You can also make many application communicate with each other at runtime using .Net remoting again this was available from .Net 1.X and later.

    So I dont know why these other guys have made it dependant on WCF?

    You can simply study about .Net remoting and you can develop a complete solution in .Net 2.0 too.

    Best Regards,

    Rizwan aka RizwanSharp

     

  • terça-feira, 16 de janeiro de 2007 18:48Sean Hederman Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     

    Perhaps we were talking about WCF because he asked specifically about it and .NET 3.0?

  • terça-feira, 16 de janeiro de 2007 18:58RizwanSharpMVPMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
     Sean Hederman wrote:

    Perhaps we were talking about WCF because he asked specifically about it and .NET 3.0?

    Ooops, Sorry, I did read his only first post and then the solutions you people provided and ignored the post in which he wrote about WCF. In first post he didnot specify anything specific to .Net 3.0 so it was m y mistake.

    Best Regards,

    Rizwan aka RizwanSharp

  • terça-feira, 16 de janeiro de 2007 19:21Ross Dargan Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido

    take a peek at my blog, I cover both services and wcf:-

    http://blog.the-dargans.co.uk/2007/01/windows-services.html

    http://blog.the-dargans.co.uk/2007/01/wcf-in-net-3.html

    Beware that lots of the tools surrounding wcf are still in beta - however it is still a hell of a lot easier than using sockets!

    Ross :)

  • terça-feira, 16 de janeiro de 2007 19:48thukralz Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     

    I asked .NET 3.0, because customer wants WCF and .NET 3.0 service and its client using that service to do the stuff.

    I really appreciate all the replies I got, I was wondering if I can get an example something Step by Step to create a Service, this is my first time creating a service application and totally new to WCF.

    Ross articles are really good..

     

  • terça-feira, 16 de janeiro de 2007 20:45Ross Dargan Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     

    Glad you like them:) - the service installer blog is pretty close to a step by step guide, is it worth just seeing where you get with it - I will happly expand upon it with another posting if it would help.

    WCF if really good - its made for what you are after:)

    Ross