Patterns: What is .net RIA Services?

Monday, May 25 2009

Microsoft is getting big in Patterns and practices, something that architects really like to see. I personally like to follow a pattern instead of designing my own, laziness? Probably not, whatever I came out with, won’t be as good as a team or people with more time and more intelligence.

Microsoft .NET RIA Services simplifies the traditional n-tier application pattern by bringing together the ASP.NET and Silverlight platforms. The RIA Services provides a pattern to write application logic that runs on the mid-tier and controls access to data for queries, changes and custom operations. It also provides end-to-end support for common tasks such as data validation, authentication and roles by integrating with Silverlight components on the client and ASP.NET on the mid-tier.

http://silverlight.net/forums/t/95364.aspx

Typical ASP.NET pattern

Classic Web Application

 

New Silverlight or RIA pattern

Rich Internet Application

 

The .NET RIA Services framework makes it easy to create application logic that can be shared across tier boundaries. One of the built-in mechanisms for this is a convention-based approach to naming source files that allows files on the server to be replicated in the client project. Because the framework also generates client proxy types that match those on the server, these files can cross-compile between the two projects.

Download the .NET RIA Services here You’ll need Silverlight 3 in order to make it work.

What about Security? The User Service provided in the RIA Services framework encapsulates authentication, authorization, and user profile. It makes verifying and tracking user identity a simple part of application development

One feature the framework offers is passing the initial client state with the HTML page. For Windows authentication and persistent Forms authentication, this provides an initial state to the client without the need for an additional load call. Currently this feature is available as part of the SilverlightApplication control. To enable serializing the initial client state, replace the default Silverlight control with the SilverlightApplication control.

I’m very exited about where Microsoft is taking Silverlight and how they are working on Patterns already for the enterprise with a mix of ASP.NET.

If you are developing applications in Silverlight that are going to production, this pattern is for you to stay into the models defined.

Message based authentication managed by Silverlight not the browser.

Silverlight can use the browsers cookies and send them to the hosts. When you authenticate with ASP.NET the authentication cookie stored to your computer will be used by Silverlight if you create a Silverlight Authentication Service

Create a service.svc make sure to select the Silverlight Service.

<%@ ServiceHost Language="C#" Service="System.Web.ApplicationServices.AuthenticationService %>

On your web.config add the service to be enable it.

<!-- this enables the WCF AuthenticationService endpoint --> <service name="System.Web.ApplicationServices.AuthenticationService" behaviorConfiguration="AuthenticationServiceTypeBehaviors"> <endpoint contract="System.Web.ApplicationServices.AuthenticationService" binding="basicHttpBinding" bindingConfiguration="userHttp" bindingNamespace="http://asp.net/ApplicationServices/v200"/> </service>

Then just connect to the service as a service web reference and use the methods for the authentication.

Composite Application Guidance for WPF

Cheers

Al

Comments

Silverlight Travel » Patterns: What is .net RIA Services? said on 5.27.2009 at 9:38 PM

Pingback from Silverlight Travel » Patterns: What is .net RIA Services?


RIA Weekly » RIA Weekly #52 - Larry Likes JavaFX, Documenting RIA Patterns, the HTML 5 Meme said on 6.12.2009 at 6:17 AM

Pingback from RIA Weekly » RIA Weekly #52 - Larry Likes JavaFX, Documenting RIA Patterns, the HTML 5 Meme


Alex said on 10.01.2009 at 11:25 PM

If you try to find locality where you can get

<a href="http://www.prime-resume.com">resume writers</a> here is very marvelous place for you about RIA Services, which give examples and gives an chance to learn how make great CV resumes . But this site is more curious, and more cooperative.


sacha said on 10.09.2009 at 6:21 AM

Thank you a lot for your article about currently! I can buy research papers on line or buy <a href="http://www.gogetessays.com" target="_blank">custom essay papers</a> with the help of the term paper writing services.


David Ghetta said on 10.12.2009 at 5:44 AM

If you demand to earn a excellent paper about .net RIA services you can use plagiarism detection, and i'll recommend you to check it in plagiarismsearch.com ! unlike those services, they give excellent class guaranty that your work is dump of plagiarism. Students would order essay for sale using the support the plagiarism detection. They will give you an accurate plagiarism detection reporting without any delay.


Pdf search engine said on 10.22.2009 at 3:03 AM

It is interesting. I believe the advantages of using Microsoft .NET RIA Services are obvious. Especially i liked your logic that a team of experienced people with a lot of time could creat a very nice product. Really sometimes it is better to follow smb's model then to invent your own bycicle. As for the RIA product I've understood its idea but I'd like to see some examples from practice. It would be of great interest.


billy said on 10.30.2009 at 12:52 AM

interesting experiments


Violet said on 11.04.2009 at 2:11 AM

It is a great news. This is a very useful function. I'm looking forward to getting it. Microsoft is a gret company. I adore it, especially after I read a book about the history of the company. (I found it at the book search engine http://pdf.rapid4me.com ) Though from the first sight it seems that they could have prepared it much earlier but I know that this decision had good grounds.


John Murray said on 11.06.2009 at 2:40 PM

I've been playing around with Silverlight for a while now and I'm liking how it's integrated with .net RIA. Also, don't get down on yourself for preferring already existing patterns, I'm the same way :)