internal CommonMaskProcessor(ModuleDefinition module, PropertyDefinition property, TypeDefinition ofClass, ProtectorAttribute attribute) : base(module, property, ofClass, attribute) { }
public static IClassProcessor ForClass(ModuleDefinition module, TypeDefinition @class, ProtectorAttribute attribute) { if (attribute is XSSGuardAttribute) { return(new XssProcessor(module, @class)); } return(new DefaultProcessor(module, @class, null)); }
protected MaskProcessor(ModuleDefinition module, PropertyDefinition property, TypeDefinition ofClass, ProtectorAttribute attribute) { Module = module; Property = property; OfClass = ofClass; _attribute = (MaskAttribute)attribute; }
public static IPropertyProcessor ForProperty(ModuleDefinition module, TypeDefinition ofClass, PropertyDefinition property, ProtectorAttribute attribute) { if (attribute is XSSGuardAttribute) { return(new XssProcessor(module, ofClass, property)); } if (attribute is MaskAttribute) { return(new CommonMaskProcessor(module, property, ofClass, attribute)); } return(new DefaultProcessor(module, ofClass, property)); }