コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: jcapellman/WET
 private void _monitor_OnEvent(object sender, lib.Containers.ETWEventContainerItem e)
 {
     Application.Current.Dispatcher.Invoke(() =>
     {
         txtBxDLLLoads.Text = txtBxDLLLoads.Text.Insert(0, $"{e.MonitorType}: {e.Payload}{Environment.NewLine}");
     });
 }
コード例 #2
0
        private void Etw_OnEvent(object sender, lib.Containers.ETWEventContainerItem e)
        {
            Assert.IsNotNull(e);

            Assert.IsNotNull(e.MonitorType);
            Assert.IsNotNull(e.Timestamp);
            Assert.IsNotNull(e.Format);
            Assert.IsNotNull(e.id);
            Assert.IsNotNull(e.Payload);

            Assert.AreEqual(OutputFormat.CSV, e.Format);
        }