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)); } }