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")]