// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
namespace Tools.CrashReporter.CrashReportProcess
{
partial class CrashReporterProcessServicer
{
///
/// Required designer variable.
///
private System.ComponentModel.IContainer components = null;
///
/// Clean up any resources being used.
///
/// true if managed resources should be disposed; otherwise, false.
protected override void Dispose( bool disposing )
{
if( disposing && ( components != null ) )
{
components.Dispose();
// If the process has started, all three disposable objects will be valid
// I would just call OnStop, but the code analysis tool doesn't look inside
// it and thinks the members aren't being Disposed.
if (Processors.Count > 0)
{
// Clean up the directory watcher and crash processor threads
foreach (var Processor in Processors)
{
Processor.Dispose();
}
Processors.Clear();
Watcher.Dispose();
Watcher = null;
StatusReporter.Dispose();
StatusReporter = null;
Slack.Dispose();
Slack = null;
// Flush the log to disk
Log.Dispose();
Log = null;
}
}
base.Dispose( disposing );
}
#region Component Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
private void InitializeComponent()
{
components = new System.ComponentModel.Container();
this.ServiceName = "CrashReportProcessService";
}
#endregion
}
}