4.5.0.1

Available Downloads

There are no downloads associated with this release.

Release Notes

4.5.0

The goal of the release is to add improved cross platform support.

This is the first release with stable WPF support as well as (at least partioal) core support to many other platforms such as windows apps (and probably xamarin apps). For an example with both Silverlight, WPF and Windows 8 app see https://github.com/Daniel-Svensson/OpenRiaPlayground/tree/master/HttpClient

Known Issues

Workaround: The recommended approach for WPF projects is to have a separate library project for the code generation

Code generation has issues for platforms where dataannotations has moved from System.ComponentModel.DataAnnotations

This includes, windows phone as well as several of the portable library targets.Code generation will succeed, but important attributes such as Key will be missing.Workaround: Run code generation in a project targeting a supported platform and then use that dll (if possible) or directly link to the generated code from another project without the code generation installed.

Silverlight projects will sometimes fail to open if they reference OpenRiaServices.Client.Codegen

Introduces a new extension point for controlling what kind of DomainClient gets created and how.

Allow Desktop and Portable clients to specify a "Base uri" so that the default constructor generated by the code gen can work outside silverlight.

This should hopefully remove the last strong dependency from the "core" Client on the current WCF based Client.Web assembly so that it becomes possible to add new service communication protocols in the future.

Why?

Make the core assembly independent of how we communicate with the Server.

Allow new communication protocols in the future such as talking to the DomainController odata service, (soap/json endpoints) etc as well as for providing a portable alternative for the current Client.Web assembly for talking with normal DomainServices.

How to use it:

Most user don't do anything at all, it will setup a DomainClientFactory automatically

For "advanced" scenarios the user can set DomainClient.DomainServiceFactory to a WebDomainClientFactory instance.

Ex: One can add the following code att application startup (ex: App ctor) before WebContext or any other DomainContext get created

For another example with both Silverlight, WPF and Windows 8 app see https://github.com/Daniel-Svensson/OpenRiaPlayground/tree/master/HttpClient (WIn8 upp is not updater to beta1)

Reviews for this release

Thanks for the hard work! Finally can use our limited resources to start migrating away from Silverlight.
by rkone
on Jul 10 at 12:41 PM

I haven't tried out authentication from WPF, but it's working well so far! The most difficult part was setting up the project - I should have started with the sample app.
by andrew_henry
on Apr 13 at 7:38 PM

This is coming along nicely! I have a large Silverlight RIA app and did a quick test with a WPF app pointing to my existing services and it just worked. Even the authentication. Nice job!
by Deken
on Apr 20, 2016 at 2:26 PM