comment
This is the first minor release since WebSharper 3.0 went live. Here is the change log:
- The types
Web.IContext
andSitelets.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.Content
creation helper:Content.FromAsync : Async<Content<'T>> -> Content<'T>
Fixed #391:
Sitelet.Infer
would incorrectly match URLs longer than prescribed, for example a union case such as:1
| Article of id: int
would not only accept urls such as:
1
/Article/123
but also urls with any extraneous fragments afterwards:
1
/Article/123/something-extra
Now it only accepts urls with the following formats:
1 2
/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!