C# Class IBE.EDDN.EDDNDuplicateFilter

Inheritance: IDisposable
显示文件 Open project: Duke-Jones/ED-IBE

Public Methods

Method 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

Method 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 method

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
return System.Boolean

DataAccepted() public method

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
return bool

Dispose() public method

public Dispose ( ) : void
return void

EDDNDuplicateFilter() public method

public EDDNDuplicateFilter ( System.TimeSpan ignoringPeriod ) : System
ignoringPeriod System.TimeSpan
return System