Click here to Skip to main content
15,892,746 members
Articles / Programming Languages / C# 4.0

Push Messages in RESTful WCF Web Application with Comet Approach

Rate me:
Please Sign up or sign in to vote.
4.91/5 (37 votes)
25 Apr 2011CPOL9 min read 112.1K   4.7K   99  
The article discusses a RESTful WCF based mechanism for server-to-client asynchronous (Push) notifications in web applications. Execution of WCF service notification method is suspended until either server event or timeout lapse.

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RestService", "RestService\RestService.csproj", "{4F914273-91CE-47C4-94A7-A8B02C359029}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Host", "Host\Host.csproj", "{73C8DD83-872D-4A6B-B3FB-08CB318BCDFB}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CometSvcLib", "CometSvcLib\CometSvcLib.csproj", "{A2EA6ECC-DA1C-4ABA-B6F8-D07EF34A289C}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Debug|Mixed Platforms = Debug|Mixed Platforms
		Debug|x86 = Debug|x86
		Release|Any CPU = Release|Any CPU
		Release|Mixed Platforms = Release|Mixed Platforms
		Release|x86 = Release|x86
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{4F914273-91CE-47C4-94A7-A8B02C359029}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{4F914273-91CE-47C4-94A7-A8B02C359029}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{4F914273-91CE-47C4-94A7-A8B02C359029}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
		{4F914273-91CE-47C4-94A7-A8B02C359029}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
		{4F914273-91CE-47C4-94A7-A8B02C359029}.Debug|x86.ActiveCfg = Debug|Any CPU
		{4F914273-91CE-47C4-94A7-A8B02C359029}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{4F914273-91CE-47C4-94A7-A8B02C359029}.Release|Any CPU.Build.0 = Release|Any CPU
		{4F914273-91CE-47C4-94A7-A8B02C359029}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
		{4F914273-91CE-47C4-94A7-A8B02C359029}.Release|Mixed Platforms.Build.0 = Release|Any CPU
		{4F914273-91CE-47C4-94A7-A8B02C359029}.Release|x86.ActiveCfg = Release|Any CPU
		{73C8DD83-872D-4A6B-B3FB-08CB318BCDFB}.Debug|Any CPU.ActiveCfg = Debug|x86
		{73C8DD83-872D-4A6B-B3FB-08CB318BCDFB}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
		{73C8DD83-872D-4A6B-B3FB-08CB318BCDFB}.Debug|Mixed Platforms.Build.0 = Debug|x86
		{73C8DD83-872D-4A6B-B3FB-08CB318BCDFB}.Debug|x86.ActiveCfg = Debug|x86
		{73C8DD83-872D-4A6B-B3FB-08CB318BCDFB}.Debug|x86.Build.0 = Debug|x86
		{73C8DD83-872D-4A6B-B3FB-08CB318BCDFB}.Release|Any CPU.ActiveCfg = Release|x86
		{73C8DD83-872D-4A6B-B3FB-08CB318BCDFB}.Release|Mixed Platforms.ActiveCfg = Release|x86
		{73C8DD83-872D-4A6B-B3FB-08CB318BCDFB}.Release|Mixed Platforms.Build.0 = Release|x86
		{73C8DD83-872D-4A6B-B3FB-08CB318BCDFB}.Release|x86.ActiveCfg = Release|x86
		{73C8DD83-872D-4A6B-B3FB-08CB318BCDFB}.Release|x86.Build.0 = Release|x86
		{A2EA6ECC-DA1C-4ABA-B6F8-D07EF34A289C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{A2EA6ECC-DA1C-4ABA-B6F8-D07EF34A289C}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{A2EA6ECC-DA1C-4ABA-B6F8-D07EF34A289C}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
		{A2EA6ECC-DA1C-4ABA-B6F8-D07EF34A289C}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
		{A2EA6ECC-DA1C-4ABA-B6F8-D07EF34A289C}.Debug|x86.ActiveCfg = Debug|Any CPU
		{A2EA6ECC-DA1C-4ABA-B6F8-D07EF34A289C}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{A2EA6ECC-DA1C-4ABA-B6F8-D07EF34A289C}.Release|Any CPU.Build.0 = Release|Any CPU
		{A2EA6ECC-DA1C-4ABA-B6F8-D07EF34A289C}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
		{A2EA6ECC-DA1C-4ABA-B6F8-D07EF34A289C}.Release|Mixed Platforms.Build.0 = Release|Any CPU
		{A2EA6ECC-DA1C-4ABA-B6F8-D07EF34A289C}.Release|x86.ActiveCfg = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

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)


Written By
Software Developer (Senior)
Israel Israel


  • Nov 2010: Code Project Contests - Windows Azure Apps - Winner
  • Feb 2011: Code Project Contests - Windows Azure Apps - Grand Prize Winner



Comments and Discussions