예제 #1
0
 internal static void XssFilter(
     this IAppBuilder app,
     bool setOnOldIE,
     UserAgentFunc getUserAgent)
 {
     app.Use <XssFilterMiddleware>(setOnOldIE, getUserAgent);
 }
 internal static void XssFilter(
     this IAppBuilder app, 
     bool setOnOldIE,
     UserAgentFunc getUserAgent)
 {
     app.Use<XssFilterMiddleware>(setOnOldIE, getUserAgent);
 }
 public XssFilterMiddleware(
     OwinMiddleware next,
     bool setOnOldIE = false,
     UserAgentFunc getUserAgent = null) : base(next)
 {
     _setOnOldIE = setOnOldIE;
     if (getUserAgent != null)
     {
         _getUserAgent = getUserAgent;
     }
 }
예제 #4
0
 public XssFilterMiddleware(
     OwinMiddleware next,
     bool setOnOldIE            = false,
     UserAgentFunc getUserAgent = null) : base(next)
 {
     _setOnOldIE = setOnOldIE;
     if (getUserAgent != null)
     {
         _getUserAgent = getUserAgent;
     }
 }