Changeset 453 for TFP-WebServer/WebServer/src/UrlHandlers/ApiHandler.cs
- Timestamp:
- Jul 28, 2023, 8:11:39 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TFP-WebServer/WebServer/src/UrlHandlers/ApiHandler.cs
r418 r453 30 30 31 31 private void apiFoundCallback (Type _type) { 32 ConstructorInfo ctor = _type.GetConstructor (apiWithParentCtorTypes); 32 ConstructorInfo ctor = _type.GetConstructor (BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, (Binder)null, 33 apiWithParentCtorTypes, (ParameterModifier[])null); 33 34 if (ctor != null) { 34 35 AbsWebAPI apiInstance = (AbsWebAPI)ctor.Invoke (apiWithParentCtorArgs); … … 37 38 } 38 39 39 ctor = _type.GetConstructor (apiEmptyCtorTypes); 40 ctor = _type.GetConstructor (BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, (Binder)null, 41 apiEmptyCtorTypes, (ParameterModifier[])null); 40 42 if (ctor != null) { 41 43 AbsWebAPI apiInstance = (AbsWebAPI)ctor.Invoke (apiEmptyCtorArgs);
Note:
See TracChangeset
for help on using the changeset viewer.