private void Update(TrackedAsset entry)
        {
            //Change to write TNC Packet to COMM port.

            if (_writer == null)
            {
                var filename = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), $"track-{DateTime.Now.ToString("yyyy-MM-dd-HHmm")}.log");
                _writer           = new StreamWriter(File.Open(filename, FileMode.Create, FileAccess.Write, FileShare.ReadWrite));
                _writer.AutoFlush = true;
            }

            _writer.WriteLine(JsonConvert.SerializeObject(entry));
            lock (syncLock)
            {
                if (latest.ContainsKey(entry.Identifier))
                {
                    latest[entry.Identifier] = entry;
                }
                else
                {
                    latest.Add(entry.Identifier, entry);
                }
            }
#pragma warning disable 4014
            //Task.Run(async () =>
            //{
            //    try
            //    {
            //        string identifier = entry.Identifier;
            //        if (!string.IsNullOrWhiteSpace(_callsign)) identifier = _callsign + "-" + identifier;

            //        await _web.GetAsync($"{_server}/rest/location/update/position?lat={entry.Position.Latitude}&lng={entry.Position.Longitude}&id=FLEET:{identifier}");
            //    }
            //    catch (HttpRequestException ex)

            //    {
            //        LogException(ex.InnerException.Message);
            //    }
            //    catch (Exception ex)
            //    {
            //        LogException(ex.Message);
            //    }
            //}).ConfigureAwait(false);
#pragma warning restore 4014

            //Print();
        }
 public ReportReceivedEventArgs(TrackedAsset trackedAsset)
 {
     this.TrackedAsset = trackedAsset;
 }