﻿using System;
using System.Windows.Forms;

namespace DrawShip.Viewer
{
	static class Program
	{
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main()
		{
			var applicationContext = new ApplicationContext();
			var runMode = applicationContext.GetRunMode();

			runMode.Run(applicationContext);
		}
	}
}

﻿using System;
using System.Net;
using System.Windows.Forms;

namespace DrawShip.Viewer
{
	static class Program
	{
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main()
		{
			ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, errors) => true;
			ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;

			var applicationContext = new ApplicationContext();
			var runMode = applicationContext.GetRunMode();

			runMode.Run(applicationContext);
		}
	}
}

Support invalid certificates (e.g. if Fiddler is in use) and more security protocols (adds Tls1.1 and Tls1.2)
Support invalid certificates (e.g. if Fiddler is in use) and more security protocols (adds Tls1.1 and Tls1.2)
