Results 1 to 4 of 4

Thread: WCF Question

  1. #1
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 03
    Location
    Bournemouth (UK)
    Posts
    539

    Thumbs up WCF Question

    Your have to use your imagination on this one...

    User A – Browser based user
    User B – Smart Client (Win32) user

    User B cranks up an application in the morning and leaves it running, during the day all the time it’s running it is constantly polling the web server to see if anyone has caused an event to occur... If they have then the application comes to live and interacts with User A.

    Now I know the polling bit of this is really inefficient, and my question is “Can WCF make it efficient for my win32 application” if so how ?


    If the following is possible it would be really nice

    User B cranks up the application in the morning, it goes and Waves to the web server, good morning Mr web server, here I am, if you get any requests for me, let me know...

    Now user A visits the web server and does something... invoking the web service to then turn around and say ahhh Yeah that win32 application this morning wanted me to notify it when this occurs... ok Mr Win32 here you go have this task....

    Sorry for the layman way of stating it, couldn’t think of any other way of saying it.. Apart from

    Now I know the polling bit of this is really inefficient, and my question is “Can WCF make it efficient for my win32 application” without having to poll the server...
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message


    IM a progermmer
    IM a programour
    IM a arh FCUK it
    I write code

  2. #2
    Pro Grammar chris128's Avatar
    Join Date
    Jun 07
    Location
    England
    Posts
    7,534

    Re: WCF Question

    It depends what you mean by "win32 application" - are you talking about an unmanaged C++ app or is it a .NET application? If it is a .NET app then yes WCF can definitely help (the pattern you describe is known as "publish subscribe" or Pub/Sub) and I've written programs before that do that exact same thing using WCF.
    Last edited by chris128; May 6th, 2010 at 03:07 PM.
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  3. #3
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 03
    Location
    Bournemouth (UK)
    Posts
    539

    Re: WCF Question

    Thanks yep the win32 application is a .net 3.5 app i will check out about pub/sub
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message


    IM a progermmer
    IM a programour
    IM a arh FCUK it
    I write code

  4. #4
    Pro Grammar chris128's Avatar
    Join Date
    Jun 07
    Location
    England
    Posts
    7,534

    Re: WCF Question

    cool, well post back here if you have any specific questions
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •