WCF Callback

Latest post 06-01-2009 9:40 AM by Nick. 0 replies.
  • 06-01-2009 9:40 AM

    • Nick
    • Top 10 Contributor
    • Joined on 04-28-2008
    • Posts 27

    WCF Callback

    void IService1Callback.ReceiveMessage(Service.Message Message)
    {
     System.Threading.SendOrPostCallback s = new System.Threading.SendOrPostCallback(WorkItem_ReceiveMessage);
     SyncContext.Post(s, Message);
    }

    public void WorkItem_ReceiveMessage(object args)
    {
     EventTopic Receive = WorkItem.EventTopics["RECEIVE_MESSAGE"];
     Receive.Fire(this, new EventArgs(), WorkItem, PublicationScope.Global);
    }

     

Page 1 of 1 (1 items) | RSS
Forums to discuss Microsoft ASP.Net Development and SQL
Powered by Community Server (Non-Commercial Edition), by Telligent Systems