core
core copied to clipboard
Minimize uses of System.Web
This would be useful especially for interacting with back-ends like Owin and Suave.
- Avoidable uses of
System.Web:
| File | Is public API | Class | Possible replacement |
|---|---|---|---|
| WS.Core/PathConventions | No | ~~System.Web.VirtualPathUtility~~ | Custom functions |
| WS.Core/Resources & deps | Yes | System.Web.UI.HtmlTextWriter | Custom type |
| WS.Sitelets/Http & deps | Yes | ~~System.Web.HttpCookieCollection~~, ~~System.Web.HttpPostedFileBase~~ | Custom type |
| (many places, for embedded resources) | Yes | System.Web.UI.WebResourceAttribute | Custom attribute |
- Relevant uses because used specifically for ASP.NET:
| File | Is public API | Class | Remarks |
|---|---|---|---|
| WS.Sitelets/Extensions (ResourceContext for Sitelets.Context) | No | ~~System.Web.HttpContext~~ | Move S.W-specific parts to HttpModule and general parts to Context |
| WS.Sitelets/HttpModule | No | (many classes) | |
| WS.Sitelets/Website | Yes | System.Web.HttpApplication | |
| WS.Web/Control, WS.Web/ScriptManager | Yes | System.Web.UI.Control | |
| WS.Web/RpcModule | No | (many classes) | |
| WS.Web/Shared | No | ~~System.Web.Compilation.BuildManager~~ | Now only used when available, otherwise gather refs by hand (a2a5d64, bfeb9d5) |
(striked out = fix committed)
Okay