C# Class IBE.EDDN.EDDNDuplicateFilter

Inheritance: IDisposable
Afficher le fichier Open project: Duke-Jones/ED-IBE

Méthodes publiques

Méthode Description
DataAccepted ( String system, String station, String commodity, System.DateTime sampleDate ) : System.Boolean

checks if the data is allowed to be imported. returns "false", if the data is to old (> 5 mins) or comes from future times (> 5 mins) or is already recieved (e.g. from another relay or another user or simply "double sended")

DataAccepted ( string dataRow ) : bool

checks if the data is allowed to be imported. returns "false", if the data is to old (> 5 mins) or comes from future times (> 5 mins) or is already recieved (e.g. from another relay or another user or simply "double sended")

Dispose ( ) : void
EDDNDuplicateFilter ( System.TimeSpan ignoringPeriod ) : System

Private Methods

Méthode Description
m_Releaser_Elapsed ( object sender, System e ) : void

Cleans up the collected filter-data by it's timestamp. If the timestamp is old enough, the ids will be removed from the filter-list.

Method Details

DataAccepted() public méthode

checks if the data is allowed to be imported. returns "false", if the data is to old (> 5 mins) or comes from future times (> 5 mins) or is already recieved (e.g. from another relay or another user or simply "double sended")
public DataAccepted ( String system, String station, String commodity, System.DateTime sampleDate ) : System.Boolean
system String
station String
commodity String
sampleDate System.DateTime
Résultat System.Boolean

DataAccepted() public méthode

checks if the data is allowed to be imported. returns "false", if the data is to old (> 5 mins) or comes from future times (> 5 mins) or is already recieved (e.g. from another relay or another user or simply "double sended")
public DataAccepted ( string dataRow ) : bool
dataRow string
Résultat bool

Dispose() public méthode

public Dispose ( ) : void
Résultat void

EDDNDuplicateFilter() public méthode

public EDDNDuplicateFilter ( System.TimeSpan ignoringPeriod ) : System
ignoringPeriod System.TimeSpan
Résultat System