core icon indicating copy to clipboard operation
core copied to clipboard

Minimize uses of System.Web

Open Tarmil opened this issue 9 years ago • 1 comments

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)

Tarmil avatar Aug 29 '16 07:08 Tarmil

Okay

sagorho avatar Feb 22 '19 09:02 sagorho