Example #1
0
 public static XssFilter GetForSchema(string schemaLocation)
 {
     lock (FilterInfoTable.SyncRoot)
     {
         XssFilterInfo filterInfo = FilterInfoTable[schemaLocation] as XssFilterInfo;
         if (filterInfo == null)
         {
             filterInfo = new XssFilterInfo(schemaLocation);
             FilterInfoTable[schemaLocation] = filterInfo;
         }
         return(new XssFilter(filterInfo));
     }
 }
Example #2
0
 private XssFilter(XssFilterInfo filterInfo)
 {
     FilterInfo = filterInfo;
 }