Exemplo n.º 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));
     }
 }
Exemplo n.º 2
0
 private XssFilter(XssFilterInfo filterInfo)
 {
     FilterInfo = filterInfo;
 }