This project has moved. For the latest updates, please go here.

asp.net to windows forms server

Aug 20, 2010 at 4:19 PM
Edited Aug 20, 2010 at 4:21 PM

I have a server writen from the nito examples and a windows forms client all are working fine. I would like to make a web interface in asp.net. Is this possible with your library and if so could you give me some hints to make it work.

Coordinator
Aug 20, 2010 at 7:55 PM

It depends on which Nito.Async objects you're using. Any object whose documentation states that it requires a "non-free-threaded synchronization context" will not work by default because ASP.NET doesn't provide one (this includes all the socket wrappers).

The ASP.NET SynchronizationContext does not satisfy any of the SynchronizationContextProperties, so any object that requires any of them will not work by default (this includes the timer and most other objects).

You can make them work by controlling them from an ActionThread, but you'll need to think long and hard about the asynchronous page lifecycle, taking into consideration IIS' AppDomain recycling.

        -Steve