public RadioDCSSyncServer(SendRadioUpdate clientRadioUpdate, ClientSideUpdate clientSideUpdate,
                           ConcurrentDictionary <string, SRClient> _clients, string guid)
 {
     _clientRadioUpdate = clientRadioUpdate;
     _clientSideUpdate  = clientSideUpdate;
     this._clients      = _clients;
     _guid = guid;
 }
 public DCSRadioSyncManager(SendRadioUpdate clientRadioUpdate, ClientSideUpdate clientSideUpdate,
                            string guid, DCSRadioSyncHandler.NewAircraft _newAircraftCallback)
 {
     IsListening          = false;
     _lineOfSightHandler  = new DCSLineOfSightHandler(guid);
     _udpCommandHandler   = new UDPCommandHandler();
     _dcsGameGuiHandler   = new DCSGameGuiHandler(clientSideUpdate);
     _dcsRadioSyncHandler = new DCSRadioSyncHandler(clientRadioUpdate, _newAircraftCallback);
 }
 public DCSRadioSyncManager(SendRadioUpdate clientRadioUpdate, ClientSideUpdate clientSideUpdate,
                            ConcurrentDictionary <string, SRClient> clients, string guid, DCSRadioSyncHandler.NewAircraft _newAircraftCallback)
 {
     this._clients        = clients;
     IsListening          = false;
     _lineOfSightHandler  = new DCSLineOfSightHandler(clients, guid);
     _udpCommandHandler   = new UDPCommandHandler();
     _dcsGameGuiHandler   = new DCSGameGuiHandler(clientSideUpdate);
     _dcsRadioSyncHandler = new DCSRadioSyncHandler(clientRadioUpdate, _clients, _newAircraftCallback);
 }
 public RadioDCSSyncServer(SendRadioUpdate clientRadioUpdate, ClientSideUpdate clientSideUpdate,
                           ConcurrentDictionary <string, SRClient> _clients, string guid)
 {
     _clientRadioUpdate = clientRadioUpdate;
     _clientSideUpdate  = clientSideUpdate;
     this._clients      = _clients;
     _guid = guid;
     _clientStateSingleton = ClientStateSingleton.Instance;
     IsListening           = false;
 }
        public DCSRadioSyncManager(SendRadioUpdate clientRadioUpdate, ClientSideUpdate clientSideUpdate,
                                   string guid, DCSRadioSyncHandler.NewAircraft _newAircraftCallback)
        {
            _clientRadioUpdate   = clientRadioUpdate;
            _clientSideUpdate    = clientSideUpdate;
            IsListening          = false;
            _lineOfSightHandler  = new DCSLineOfSightHandler(guid);
            _udpCommandHandler   = new UDPCommandHandler();
            _dcsGameGuiHandler   = new DCSGameGuiHandler(clientSideUpdate);
            _dcsRadioSyncHandler = new DCSRadioSyncHandler(clientRadioUpdate, _newAircraftCallback);

            _clearRadio = new DispatcherTimer(DispatcherPriority.Background, Application.Current.Dispatcher)
            {
                Interval = TimeSpan.FromSeconds(1)
            };
            _clearRadio.Tick += CheckIfRadioIsStale;
        }