Version 3.2.2: Https Zertifikatsvalidierung für Fleettracker entfernt
This commit is contained in:
parent
7e69ecd37c
commit
04068510bb
Binary file not shown.
@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
[assembly: AssemblyCompany("Informatikbüro Daniel Schick")]
|
[assembly: AssemblyCompany("Informatikbüro Daniel Schick")]
|
||||||
[assembly: AssemblyProduct("BSMD NSW interface")]
|
[assembly: AssemblyProduct("BSMD NSW interface")]
|
||||||
[assembly: AssemblyInformationalVersion("3.2.1")]
|
[assembly: AssemblyInformationalVersion("3.2.2")]
|
||||||
[assembly: AssemblyCopyright("Copyright © 2014-2016 Informatikbüro Daniel Schick. All rights reserved.")]
|
[assembly: AssemblyCopyright("Copyright © 2014-2016 Informatikbüro Daniel Schick. All rights reserved.")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
@ -1,4 +1,4 @@
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
[assembly: AssemblyVersion("3.2.1.*")]
|
[assembly: AssemblyVersion("3.2.2.*")]
|
||||||
|
|
||||||
|
|||||||
@ -1,19 +1,18 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel;
|
|
||||||
using System.Data;
|
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Linq;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.ServiceProcess;
|
using System.ServiceProcess;
|
||||||
using System.Text;
|
|
||||||
using System.Timers;
|
using System.Timers;
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
using log4net;
|
using log4net;
|
||||||
using bsmd.database;
|
using bsmd.database;
|
||||||
using bsmd.herberg.FormService.WebReference;
|
using bsmd.herberg.FormService.WebReference;
|
||||||
|
|
||||||
|
// temporary
|
||||||
|
using System.Security.Cryptography.X509Certificates;
|
||||||
|
using System.Net.Security;
|
||||||
|
|
||||||
namespace bsmd.herberg.FormService
|
namespace bsmd.herberg.FormService
|
||||||
{
|
{
|
||||||
public partial class FormService : ServiceBase
|
public partial class FormService : ServiceBase
|
||||||
@ -39,6 +38,7 @@ namespace bsmd.herberg.FormService
|
|||||||
FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(assembly.Location);
|
FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(assembly.Location);
|
||||||
string version = fvi.FileVersion;
|
string version = fvi.FileVersion;
|
||||||
this._log.InfoFormat("Starting EU-NOAD FormService. v.{0}", version);
|
this._log.InfoFormat("Starting EU-NOAD FormService. v.{0}", version);
|
||||||
|
|
||||||
this.DoOnce();
|
this.DoOnce();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -58,9 +58,19 @@ namespace bsmd.herberg.FormService
|
|||||||
|
|
||||||
public void DoOnce()
|
public void DoOnce()
|
||||||
{
|
{
|
||||||
|
this.IgnoreSSLCertificate();
|
||||||
this._timer_Elapsed(null, null);
|
this._timer_Elapsed(null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void IgnoreSSLCertificate()
|
||||||
|
{
|
||||||
|
System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate (object sender, X509Certificate certificate,
|
||||||
|
X509Chain chain, SslPolicyErrors sslPolicyErrors)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
void _timer_Elapsed(object sender, ElapsedEventArgs e)
|
void _timer_Elapsed(object sender, ElapsedEventArgs e)
|
||||||
{
|
{
|
||||||
lock (this._timerlock)
|
lock (this._timerlock)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user