Esempio n. 1
0
        protected async void ProcessPacket(object networkAdapter, RawCapture rawCapture)
        {
            try
            {
                StatisticsRecord capturedPacket = rawCapture.ConvertToStatistics();

                if (capturedPacket != null)
                {
                    IncreaseStatistics(networkAdapter, capturedPacket);
                }
            }
            catch (Exception e)
            {
                await KaTaLyzerLogger.Log(LogLevel.Error, e, new KeyValuePair <string, object>("CapturedData", rawCapture.Data));
            }
        }