From df6997f9d8d9541c63bd335a0fdc8e4b66d1208e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Granfeldt?= Date: Sun, 16 Sep 2018 08:12:35 +0200 Subject: [PATCH] v1.2.5.2 Optimized type detection in LoadExternalAssembly Changed assembly title and description in the interest of gradually removing FIM name from product --- Model/External.cs | 4 +++- Properties/AssemblyInfo.cs | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Model/External.cs b/Model/External.cs index ebb9519..89750b3 100644 --- a/Model/External.cs +++ b/Model/External.cs @@ -1,5 +1,7 @@ // september 12, 2018 | soren granfeldt // -initial version +// september 16, 2018 | soren granfeldt +// -optimized type detection in LoadExternalAssembly by recommendation from Ryan Newington using Microsoft.MetadirectoryServices; using System; @@ -54,7 +56,7 @@ public void LoadExternalAssembly() Tracer.TraceInformation("loading-loadexternalassembly {0}", Path.Combine(Utils.ExtensionsDirectory, this.FilenameFull)); this.Assembly = Assembly.LoadFile(FilenameFull); Type[] types = Assembly.GetExportedTypes(); - Type type = types.Where(u => u.GetInterface("Microsoft.MetadirectoryServices.IMVSynchronization") != null).FirstOrDefault(); + Type type = types.FirstOrDefault(u => u.GetInterface("Microsoft.MetadirectoryServices.IMVSynchronization") != null); if (type != null) { instance = Activator.CreateInstance(type) as IMVSynchronization; diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index b8a63d8..d0091f6 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -5,11 +5,11 @@ // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. -[assembly: AssemblyTitle("FIM Metaverse Rules Extension")] +[assembly: AssemblyTitle("FIM/MIM Metaverse Rules Extension")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Goverco")] -[assembly: AssemblyProduct("FIM Metaverse Rules Extension")] +[assembly: AssemblyProduct("FIM/MIM Metaverse Rules Extension")] [assembly: AssemblyCopyright("Copyright © Soren Granfeldt 2012-2018")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -29,5 +29,5 @@ // Build Number // Revision // -[assembly: AssemblyVersion("1.2.5.1")] -[assembly: AssemblyFileVersion("1.2.5.1")] +[assembly: AssemblyVersion("1.2.5.2")] +[assembly: AssemblyFileVersion("1.2.5.2")]