BInd to events from win service from desktop application

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bz

    BInd to events from win service from desktop application

    Hi,

    I need to create a win service that lookup a file ina folder, ands
    when received, read it then fir an event.

    Then I need a desktop app that, when runs, bind to the event from the
    win service, and when the event fires, read the eventarg data and do
    some processing with.

    Can anyone point me to the right direction to do this?

    I will use filesystemwatch er to detect when file changes, but don't
    know from there

    I know how to do this with COM (the service is a com obj defining an
    interface and the desktop app implements that interface and bind to
    the running service), but not sure how to do it in NET

    Any advice or suggestion is appreciated.

    Thank you
  • parez

    #2
    Re: BInd to events from win service from desktop application

    On Apr 28, 8:02 am, bz <bzam...@gmail. comwrote:
    Hi,
    >
    I need to create a win service that lookup a file ina folder, ands
    when received, read it then fir an event.
    >
    Then I need a desktop app that, when runs, bind to the event from the
    win service, and when the event fires, read the eventarg data and do
    some processing with.
    >
    Can anyone point me to the right direction to do this?
    >
    I will use filesystemwatch er to detect when file changes, but don't
    know from there
    >
    I know how to do this with COM (the service is a com obj defining an
    interface and the desktop app implements that interface and bind to
    the running service), but not sure how to do it in NET
    >
    Any advice or suggestion is appreciated.
    >
    Thank you
    One easy approach is to start off a new process(desktop app) with
    appropriate arguments everytime the file changes.

    Comment

    • bz

      #3
      Re: BInd to events from win service from desktop application

      Hi,

      This doesn't works, because I don't want to desktop process to open
      everytime.
      The service must do what it is designed to do, and the desktop is just
      a monitor, users can choose to start when they want to see the status
      of service processing.

      It might not be started for days, for example

      Any other thought?



      On Apr 28, 6:14 pm, parez <psaw...@gmail. comwrote:
      On Apr 28, 8:02 am, bz <bzam...@gmail. comwrote:
      >
      >
      >
      >
      >
      Hi,
      >
      I need to create a win service that lookup a file ina folder, ands
      when received, read it then fir an event.
      >
      Then I need a desktop app that, when runs, bind to the event from the
      win service, and when the event fires, read the eventarg data and do
      some processing with.
      >
      Can anyone point me to the right direction to do this?
      >
      I will use filesystemwatch er to detect when file changes, but don't
      know from there
      >
      I know how to do this with COM (the service is a com obj defining an
      interface and the desktop app implements that interface and bind to
      the running service), but not sure how to do it in NET
      >
      Any advice or suggestion is appreciated.
      >
      Thank you
      >
      One easy approach is to start off a new process(desktop app)  with
      appropriate arguments everytime the file changes.- Hide quoted text -
      >
      - Show quoted text -

      Comment

      • parez

        #4
        Re: BInd to events from win service from desktop application

        On Apr 29, 10:25 am, bz <bzam...@gmail. comwrote:
        Hi,
        >
        This doesn't works, because I don't want to desktop process to open
        everytime.
        The service must do what it is designed to do, and the desktop is just
        a monitor, users can choose to start when they want to see the status
        of service processing.
        >
        It might not be started for days, for example
        >
        Any other thought?
        >
        On Apr 28, 6:14 pm, parez <psaw...@gmail. comwrote:
        >
        On Apr 28, 8:02 am, bz <bzam...@gmail. comwrote:
        >
        Hi,
        >
        I need to create a win service that lookup a file ina folder, ands
        when received, read it then fir an event.
        >
        Then I need a desktop app that, when runs, bind to the event from the
        win service, and when the event fires, read the eventarg data and do
        some processing with.
        >
        Can anyone point me to the right direction to do this?
        >
        I will use filesystemwatch er to detect when file changes, but don't
        know from there
        >
        I know how to do this with COM (the service is a com obj defining an
        interface and the desktop app implements that interface and bind to
        the running service), but not sure how to do it in NET
        >
        Any advice or suggestion is appreciated.
        >
        Thank you
        >
        One easy approach is to start off a new process(desktop app) with
        appropriate arguments everytime the file changes.- Hide quoted text -
        >
        - Show quoted text -
        then you will have to use some better form of IPC .. named pipes,
        remoting or MSMQ




        Comment

        • bz

          #5
          Re: BInd to events from win service from desktop application

          Thank you, I'll check them

          On May 1, 5:28 pm, parez <psaw...@gmail. comwrote:
          On Apr 29, 10:25 am, bz <bzam...@gmail. comwrote:
          >
          >
          >
          >
          >
          Hi,
          >
          This doesn't works, because I don't want to desktop process to open
          everytime.
          The service must do what it is designed to do, and the desktop is just
          a monitor, users can choose to start when they want to see the status
          of service processing.
          >
          It might not be started for days, for example
          >
          Any other thought?
          >
          On Apr 28, 6:14 pm, parez <psaw...@gmail. comwrote:
          >
          On Apr 28, 8:02 am, bz <bzam...@gmail. comwrote:
          >
          Hi,
          >
          I need to create a win service that lookup a file ina folder, ands
          when received, read it then fir an event.
          >
          Then I need a desktop app that, when runs, bind to the event from the
          win service, and when the event fires, read the eventarg data and do
          some processing with.
          >
          Can anyone point me to the right direction to do this?
          >
          I will use filesystemwatch er to detect when file changes, but don't
          know from there
          >
          I know how to do this with COM (the service is a com obj defining an
          interface and the desktop app implements that interface and bind to
          the running service), but not sure how to do it in NET
          >
          Any advice or suggestion is appreciated.
          >
          Thank you
          >
          One easy approach is to start off a new process(desktop app)  with
          appropriate arguments everytime the file changes.- Hide quoted text -
          >
          - Show quoted text -
          >
          then you will have to use some better form of IPC .. named pipes,
          remoting or MSMQ
          >
          http://www.google.com/search?hl=en&r...&q=Compare...- Hide quoted text -
          >
          - Show quoted text -

          Comment

          Working...