From 64ba850d848e539e9f99e09927fa1b17b6306e8f Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Fri, 18 Sep 2020 21:46:45 +0300 Subject: Added EF Extensions license setup to machine service. --- .../Visual_Studio/Web/Tango.MachineService/Global.asax.cs | 15 +++++++++++++++ .../Web/Tango.MachineService/Properties/AssemblyInfo.cs | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'Software/Visual_Studio/Web/Tango.MachineService') diff --git a/Software/Visual_Studio/Web/Tango.MachineService/Global.asax.cs b/Software/Visual_Studio/Web/Tango.MachineService/Global.asax.cs index 47ef6cc10..9a768eb1d 100644 --- a/Software/Visual_Studio/Web/Tango.MachineService/Global.asax.cs +++ b/Software/Visual_Studio/Web/Tango.MachineService/Global.asax.cs @@ -25,6 +25,21 @@ namespace Tango.MachineService BundleConfig.RegisterBundles(BundleTable.Bundles); GlobalConfiguration.Configuration.IncludeErrorDetailPolicy = IncludeErrorDetailPolicy.Always; + + try + { + Z.EntityFramework.Extensions.LicenseManager.AddLicense("4578;101-twine-s.com", "9d23b66f-1101-b253-7f8a-59ae011b2ee8"); + + string licenseErrorMessage; + if (!Z.EntityFramework.Extensions.LicenseManager.ValidateLicense(out licenseErrorMessage)) + { + throw new Exception(licenseErrorMessage); + } + } + catch (Exception ex) + { + LogManager.Default.Log(ex, "Error performing EF extensions license setup."); + } } } } diff --git a/Software/Visual_Studio/Web/Tango.MachineService/Properties/AssemblyInfo.cs b/Software/Visual_Studio/Web/Tango.MachineService/Properties/AssemblyInfo.cs index 80b01d98e..efa53fcdd 100644 --- a/Software/Visual_Studio/Web/Tango.MachineService/Properties/AssemblyInfo.cs +++ b/Software/Visual_Studio/Web/Tango.MachineService/Properties/AssemblyInfo.cs @@ -24,4 +24,4 @@ using System.Runtime.InteropServices; // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("3.0.3.0")] +[assembly: AssemblyVersion("3.0.4.0")] -- cgit v1.3.1