Skip to content

Commit f2a0166

Browse files
committed
Adding changes to handle multi entries of the same DLL in the plugins folder, but only load it once.
Fixing typo in attribute, should be microtingUUID instead of MicrotingUUID.
1 parent a32c052 commit f2a0166

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

eFormAPI/eFormAPI/Infrastructure/Helpers/PluginHelper.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ public static List<Assembly> GetPluginAssemblies()
3737

3838
foreach (var plugin in pluginList)
3939
{
40-
assemblies.Add(Assembly.LoadFrom(Path.Combine(plugin)));
40+
Assembly asm = Assembly.LoadFrom(Path.Combine(plugin));
41+
if (assemblies.SingleOrDefault(x => x.FullName == asm.FullName) == null)
42+
{
43+
assemblies.Add(Assembly.LoadFrom(Path.Combine(plugin)));
44+
}
4145
}
4246
}
4347
return assemblies;

eform-client/src/app/common/models/advanced/adv-entity-selectable-group.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {AdvEntitySelectableItemModel} from './adv-entity-selectable-item.model';
22
export class AdvEntitySelectableGroupModel {
33
name: string;
44
type: string;
5-
MicrotingUUID: string;
5+
microtingUUID: string;
66
workflowState: string;
77
status = true;
88
createdAt: Date;

0 commit comments

Comments
 (0)