Click here to Skip to main content
13,702,125 members
Click here to Skip to main content

Stats

73.5K views
216 downloads
62 bookmarked
Posted 27 Mar 2006
Licenced CPOL

Server-Side Asynchronous Methods for ASP.NET and WinFX

, 6 Apr 2006
An article that describes how to create server-side asynchronous service methods for ASP.NET and WinFX, thereby freeing up resources on the server to handle more clients simultaenously.
code
ConsoleApplication
Properties
Service References
localhost.map
WebSite
App_Code
Service.svc
Web.Config
using System;
using System.ServiceModel;

/// <summary>
/// Defines the contract for the WinFX version of the service.
/// </summary>
[ServiceContract()]
public interface IWinfxService
{
	[OperationContract]
	Int32 SyncWork();

	[OperationContract(AsyncPattern = true)]
	IAsyncResult BeginAsyncWork(AsyncCallback callback, Object state);

	Int32 EndAsyncWork(IAsyncResult ar);
}

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

Karl M. Hulme
Web Developer
United Kingdom United Kingdom
I live with my wife in Bournemouth in the UK. She consistently inspires me to be the person I know I should be. I enjoy writing music, playing the piano, watching movies, philisophical discussion and eating jaffa cakes.

You may also be interested in...

Pro
Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web04-2016 | 2.8.180906.1 | Last Updated 6 Apr 2006
Article Copyright 2006 by Karl M. Hulme
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid