Click or drag to resize
IAircraftDetailFetcher Interface
The interface for a singleton class that periodically fetches all aircraft details from the database.

Namespace: VirtualRadar.Interface
Assembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public interface IAircraftDetailFetcher : ISingleton<IAircraftDetailFetcher>

The IAircraftDetailFetcher type exposes the following members.

Properties
  NameDescription
Public propertySingleton
Gets the single instance of the class that should be used throughout the application.
(Inherited from ISingletonT.)
Top
Methods
  NameDescription
Public methodRegisterAircraft
Registers an aircraft as being tracked.
Top
Events
  NameDescription
Public eventFetched
Raised when new aircraft details have been fetched for an aircraft.
Top
Remarks

Each aircraft list should call RegisterAircraft(IAircraft) whenever it gets a message from an aircraft. The call will always return quickly, it never triggers a direct interrogation of the database. If no register calls are made within a certain period of time the aircraft is no longer monitored for detail changes.

If an event handler raises an exception then it will be logged and it will not be shown to the user. Event handlers should avoid throwing exceptions.

See Also