Skip to content

Commit

Permalink
v1.2.5.2
Browse files Browse the repository at this point in the history
Optimized type detection in LoadExternalAssembly
Changed assembly title and description in the interest of gradually removing FIM name from product
  • Loading branch information
sorengranfeldt committed Sep 16, 2018
1 parent 87a6ad3 commit df6997f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion Model/External.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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("")]
Expand All @@ -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")]

0 comments on commit df6997f

Please sign in to comment.