unosquare / embedio

A tiny, cross-platform, module based web server for .NET
http://unosquare.github.io/embedio
Other
1.47k stars 176 forks source link

WebServer non-invocable member cannot be used like a member #345

Closed TomCJones closed 5 years ago

TomCJones commented 5 years ago

Describe the bug new installation of embedio does not work with sample code

Steps to reproduce the behavior: Just installed nuget embedio 3.0.1 added this code to app.xaml.cs in forms code string url = "http://localhost:8765/"; using (var server = WebServer(url)) { }

Expected behavior compiles I tried to past an image, but that's not working error is CS1955 text above

Desktop (please complete the following information): xamarin.forms (will use in android)

I noticed that the code was just updated - is it possible nuget is out-of-date?

TomCJones commented 5 years ago

this seems to work - so i am not blocked string url = "http://localhost:8765/"; using (var server = new WebServer(url)) { }

TomCJones commented 5 years ago

Please close this bug - i had not read thru then entire documentation - the answer was down just a little in the example.