I’ve previously asked a question about designing a service that receives video files, sends them to an encoding service, waits for the encoding to be completed, and then downloads the files.
I started writing the code for that and one of my workmates suggested I use .Net 4.0 new features, instead of writing it using BackgroundWorker. I’ve done some reading and the Parallel feature sounds great. Are there any more new features I should implement? I’m new to .net 4.0.
Thanks!
Parallel Extensions is certainly one good option here. Another you might want to consider is Reactive Extensions, which implements a “push” model instead. It takes a little while to get your head round, but it’s very elegant – and might work very well with your asynchronous model.