Implement IWebRootFileSystemProvider

#86 
Provide a FileSystem based at the WebRoot as read from the project.json.
PathPath resolves paths relative to WebRoot and prevents escaping.

Helios will want to override this service to support vdirs.

@lodejard @davidfowl 
I think there was the idea to add IHostingEnvironment {IFileSystem FileSystem {get;set;}} to cover settability.
________________________________
From: David Fowler<mailto:notifications@github.com>
Sent: ý12/ý5/ý2014 12:22 AM
To: aspnet/Hosting<mailto:Hosting@noreply.github.com>
Cc: Louis DeJardin<mailto:lodejard@microsoft.com>
Subject: Re: [Hosting] Implement IWebRootFileSystemProvider (#126)


In src/Microsoft.AspNet.Hosting/HostingEnvironment.cs:

> @@ -22,6 +24,8 @@ public HostingEnvironment(IApplicationEnvironment appEnv, IEnumerable<IConfigure
>
>          public string EnvironmentName { get; set; }
>
> -        public string WebRoot { get; set; }
> +        public string WebRoot { get; private set; }


The WebRootFileSystem would need to be settable. The idea is that Helios would just implement IConfigureHostingEnvironment to change the IFileSystem (I know it feels kinda weird making it settable)

—
Reply to this email directly or view it on GitHub<https://github.com/aspnet/Hosting/pull/126/files#r21360083>.