This is the first minor release since WebSharper 3.0 went live. Here is the change log:
The types
Web.IContextandSitelets.Context<_>have a new memberEnvironment : IDictionary<string, obj>. This property is used to pass host-specific data to sitelets and Rpc functions. Currently, this dictionary contains:- When running as an ASP.NET module (eg. Client-Server Application project template),
"HttpContext"containsSystem.Web.HttpContext.Current. - When running on OWIN (eg. Self-Hosted Client-Server Application project template),
"OwinContext"contains the currentIOwinContext.
Thanks to Catalin Bocirnea for this contribution on this!
- When running as an ASP.NET module (eg. Client-Server Application project template),
Added a
Sitelets.Contentcreation helper:Content.FromAsync : Async<Content<'T>> -> Content<'T>Fixed #391:
Sitelet.Inferwould incorrectly match URLs longer than prescribed, for example a union case such as:| Article of id: intwould not only accept urls such as:
/Article/123but also urls with any extraneous fragments afterwards:
/Article/123/something-extraNow it only accepts urls with the following formats:
/Article/123 /Article/123/
As always, WebSharper 3.0.59 is available on NuGet, and the installers for Visual Studio and Xamarin Studio / MonoDevelop are available on the official website and on the respective update channels.
Happy coding!