CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

Is Re-Use of Silverlight Async objects possible for asp.net WebForms?

rated by 0 users
Answered (Verified) This post has 1 verified answer | 2 Replies | 2 Followers

Top 500 Contributor
28 Posts
Savij posted on Tue, May 29 2012 2:07 PM

Hello,

I have created a silverlight application using CSLA 4. I used the pattern of splitting the partial classes between two projects rather than using compiler directives just because of preference. I now have the task of writing a webform front end that does many of the same tasks as the silverlight project. Is it possible to reuse my classes for the web? I only ask because the static factory methods are async and I'm not sure how that will affect the aspx page. I figure I will have to mark the webpage as async, but not sure if it will just work or if anyone has tried this before.

Any thoughts are welcome!

Thanks,

Jeff

Answered (Verified) Verified Answer

Top 10 Contributor
9,270 Posts
Verified by Savij

It is not really practical to use Silverlight-style async methods on a web server, no.

This will change with .NET 4.5 and CSLA 4.5 when the new async/await keywords are available. But with today's event-based callback model it is quite difficult to get ASP.NET to work well with async calls.

Rocky

All Replies

Top 10 Contributor
9,270 Posts
Verified by Savij

It is not really practical to use Silverlight-style async methods on a web server, no.

This will change with .NET 4.5 and CSLA 4.5 when the new async/await keywords are available. But with today's event-based callback model it is quite difficult to get ASP.NET to work well with async calls.

Rocky

Top 500 Contributor
28 Posts
Savij replied on Tue, May 29 2012 3:40 PM

Thanks Rocky!! Thats what I figured, but wanted to be sure.

Great work as always on CSLA, I love working with it!!!!

 

-Jeff

Page 1 of 1 (3 items) | RSS

Copyright (c) 2006-2010 Marimer LLC. All rights reserved.
Email admin@lhotka.net for support.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems