Click here to Skip to main content
Click here to Skip to main content
 
Add your own
alternative version

Duplex Web Services

, 26 Jun 2008 CPOL
Using multi-threading techniques to create a duplex (two-way) web service that can push events/messages to the client.
duplex_ws_sample.zip
ChatClient
bin
Debug
ChatClient.application
ChatClient.exe
ChatClient.exe.manifest
ChatClient.vshost.application
ChatClient.vshost.exe
ChatClient.vshost.exe.manifest
ConsumeDelegateWS.vshost.application
ConsumeDelegateWS.vshost.exe.manifest
ChatClient.csproj.user
ChatClient_TemporaryKey.pfx
Images
person.jpg
Properties
Settings.settings
Web References
Hello
EventObject.datasource
Reference.map
Service1.disco
Service1.wsdl
TwoWayWS
EventObject.datasource
LoginEvent.datasource
Reference.map
Service1.disco
Service1.wsdl
Documentation
Duplex Web Service.doc
TwoWayWS
App_Data
bin
TwoWayWS.dll
Global.asax
Properties
.svn
entries
format
prop-base
props
text-base
AssemblyInfo.cs.svn-base
tmp
prop-base
props
text-base
TwoWayWS.csproj.user
using System;
using System.Collections.Generic;
using System.Text;

using System.Xml;
using System.Xml.Serialization;

namespace TwoWayWS
{


    [Serializable]
    public class EventObject
    {
		public int EventID = 0;
		public int EventsListResetID = 0;
    }

	public class LoginEvent : EventObject {
		public string UserName;
	}

	public class LoggedOutEvent : EventObject {
		public string UserName;
	}

	public class MessageEvent : EventObject {
		public string From = string.Empty;
		public string Message = string.Empty;
	}

}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Boaz Davidoff
Technical Lead Sela College
Israel Israel
With over 20 years of IT experience, Boaz currently works as a Consultant/Instructor at Sela College

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.1411019.1 | Last Updated 26 Jun 2008
Article Copyright 2008 by Boaz Davidoff
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid