none
Keeping Times In Sync With WCF RRS feed

  • Question

  • Hello

    I have an two computers that have the following items.

    1 - Windows service (on the 'server')

    2 - WCF hosted in IIS (on the 'server')

    3 - Client app (on the client pc)

    The application(1) counts down (sort of like a timer) which is invoked by the client(3).  What I need is a way for the WCF app(2) to notify (1) when its done counting down.

    Is this possible? (having the timer/processing is not possible on the client(3) and has to be done through the windows service(1)

    Thanks in advance!


    Thursday, January 24, 2013 4:55 PM

Answers

All replies

  • You can handle this via WCF events.

    Reed Copsey, Jr. - http://reedcopsey.com
    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".

    Thursday, January 24, 2013 5:37 PM
  • Thanks, that explains how I get the string from 2 to 3 but how do i get it from 1 to 2?

    Is it feasible to write to the registry every second?

    Friday, January 25, 2013 7:30 PM
  • Thanks, that explains how I get the string from 2 to 3 but how do i get it from 1 to 2?

    Is it feasible to write to the registry every second?

    You shoudl use some form of IPC, such as a named pipe.  Frankly, WCF would work well for this, as well - you could have your WCF hosted have a separate service the local service uses to notify...


    Reed Copsey, Jr. - http://reedcopsey.com
    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".

    Friday, January 25, 2013 7:37 PM
  • Thank for the help.

    I dont know why i didnt think of this earlier but all i need to do is write a method in the wcf (2) and invoke it from (1).

    Is there a way to keep a variable in memory so that multiple calls can access the same variable?  I just need one variable, all others should be independent of each other.

    Friday, January 25, 2013 10:51 PM
  • You should be able to define it as static, and have it persist between sessions.

    Reed Copsey, Jr. - http://reedcopsey.com
    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".

    Friday, January 25, 2013 11:15 PM