Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. IPC Events in windows service

IPC Events in windows service

Scheduled Pinned Locked Moved C#
tutorialsysadmin
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    picazo
    wrote on last edited by
    #1

    Hi everyone, I have been researching this topic for a few hours now and have not found any good sources of information. Basically, I have a windows service and a windows form application. The winform app can control the service (start, stop, pause...). However, the service runs long processes, and I would like for it to report progress that can be displayed by the winform, when the winform is running. The progress should be reported by raising events that the winform will subscribe to. I know I will have to have a shared library that contains an interface or class that the server extends or inherits. I am not sure how to the whole thing would be structured though. If anyone has any experience with this and can share a very simple example, I would really appreciate it. Links to related articles are also very welcome. Thanks in advance,

    ----------------- Picazo

    M 1 Reply Last reply
    0
    • P picazo

      Hi everyone, I have been researching this topic for a few hours now and have not found any good sources of information. Basically, I have a windows service and a windows form application. The winform app can control the service (start, stop, pause...). However, the service runs long processes, and I would like for it to report progress that can be displayed by the winform, when the winform is running. The progress should be reported by raising events that the winform will subscribe to. I know I will have to have a shared library that contains an interface or class that the server extends or inherits. I am not sure how to the whole thing would be structured though. If anyone has any experience with this and can share a very simple example, I would really appreciate it. Links to related articles are also very welcome. Thanks in advance,

      ----------------- Picazo

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      Have you looked into .NET Remoting? Mark

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      P 1 Reply Last reply
      0
      • M Mark Salsbery

        Have you looked into .NET Remoting? Mark

        Mark Salsbery Microsoft MVP - Visual C++ :java:

        P Offline
        P Offline
        picazo
        wrote on last edited by
        #3

        Yes. I would like to use the IPC channel since the service and the winform will live on the same machine. I have used IPC before, but never with winservices or events. That is the part that I would like some advice or assistance with. Thanks,

        ----------------- Picazo

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups