HeapProfiler.MainWindow.SubscribeToEvents C# (CSharp) Method

SubscribeToEvents() protected method

protected SubscribeToEvents ( HeapProfiler.HeapRecording instance ) : void
instance HeapProfiler.HeapRecording
return void
        protected void SubscribeToEvents(HeapRecording instance)
        {
            Instance.StatusChanged += (s, _) => RefreshStatus();
            Instance.SnapshotsChanged += (s, _) => RefreshSnapshots();
            Instance.SymbolsChanged += (s, _) => {
                Scheduler.Start(
                    RefreshFunctionNames(Instance), TaskExecutionPolicy.RunAsBackgroundTask
                );
            };
        }
MainWindow