- Timestamp:
- Aug 7, 2022, 1:11:51 AM (2 years ago)
- Location:
- binary-improvements2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2
- Property svn:ignore
-
old new 1 .idea 1 2 bin 2 .idea 3 server-fixes.sln.DotSettings.user
-
- Property svn:ignore
-
binary-improvements2/MapRendering
- Property svn:ignore
-
old new 1 bin 1 2 obj
-
- Property svn:ignore
-
binary-improvements2/MapRendering/Web/Handlers/ApiHandler.cs
r387 r389 22 22 Object[] apiEmptyCtorArgs = { }; 23 23 24 foreach (Type t in Assembly.GetExecutingAssembly ().GetTypes ()) {25 if (!t.IsAbstract && t.IsSubclassOf (typeof (AbsWebAPI))){26 ConstructorInfo ctor = t.GetConstructor (apiWithParentCtorTypes);27 28 29 30 continue;31 24 25 ReflectionHelpers.FindTypesImplementingBase (typeof (AbsWebAPI), _type => { 26 ConstructorInfo ctor = _type.GetConstructor (apiWithParentCtorTypes); 27 if (ctor != null) { 28 AbsWebAPI apiInstance = (AbsWebAPI) ctor.Invoke (apiWithParentCtorArgs); 29 addApi (apiInstance); 30 return; 31 } 32 32 33 ctor = t.GetConstructor (apiEmptyCtorTypes); 34 if (ctor != null) { 35 AbsWebAPI apiInstance = (AbsWebAPI) ctor.Invoke (apiEmptyCtorArgs); 36 addApi (apiInstance); 37 } 33 ctor = _type.GetConstructor (apiEmptyCtorTypes); 34 if (ctor != null) { 35 AbsWebAPI apiInstance = (AbsWebAPI) ctor.Invoke (apiEmptyCtorArgs); 36 addApi (apiInstance); 38 37 } 39 } 38 }); 40 39 41 40 // Permissions that don't map to a real API
Note:
See TracChangeset
for help on using the changeset viewer.