C# 클래스 Te.StahpIt.Filtering.FilteringCategory

The FilteringCategory class represents a category that includes a source of filtering rules, which is supplied to the filtering Engine. FilteringCategory objects are, once loaded, given over to the user to enable and disable.
상속: IDisposable
파일 보기 프로젝트 열기: TechnikEmpire/StahpIt-WPF 1 사용 예제들

Private Properties

프로퍼티 타입 설명
FilteringCategory ByteSizeLib
IsListExpired bool

공개 메소드들

메소드 설명
Dispose ( ) : void
FilteringCategory ( Engine engine ) : ByteSizeLib

Constructs a new filtering category. All members must be manually set, barring the ID. This is automatically generated within the constructor.

UpdateAndLoad ( ) : void

Updates, if necessary, the rule list and loads it into the Engine for use.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
FilteringCategory ( ) : ByteSizeLib
IsListExpired ( ) : bool

Checks if the current list is expired.

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

FilteringCategory() 공개 메소드

Constructs a new filtering category. All members must be manually set, barring the ID. This is automatically generated within the constructor.
/// The maximum number of categories is equal to the numeric limits of an 8 bit integer. /// Category ID are automatically generated from a static, Interlocked controlled count, then /// the result of the interlocked incremement is tested against this numeric limit. In other /// words, if more categories than this limit permits are constructed, this constructor will /// throw. /// /// In the event that the supplied Engine reference is null, will throw ArgumentException. ///
public FilteringCategory ( Engine engine ) : ByteSizeLib
engine Engine
리턴 ByteSizeLib

UpdateAndLoad() 공개 메소드

Updates, if necessary, the rule list and loads it into the Engine for use.
/// If updating, while attempting to download the list source, this exception may be thrown /// by the WebClient. This exception is not handled internally in order to allow users of the /// model to handle them. This exception will also be manually thrown if no file is present /// after the download. /// /// If updating, while attempting to download the list source, this exception may be thrown /// by the WebClient. This exception is not handled internally in order to allow users of the /// model to handle them. This exception may also be thrown if the file downloaded is larger /// than a hard-coded accepted memory limit. /// /// If updating, while attempting to parse the date, this exception may be thrown. This /// exception is not handled internally in order to allow users of the model to handle them. /// /// If updating, while attempting to parse the date, this exception may be thrown. This /// exception is not handled internally in order to allow users of the model to handle them. ///
public UpdateAndLoad ( ) : void
리턴 void