Ignore:
Timestamp:
Jul 28, 2023, 8:11:39 PM (16 months ago)
Author:
alloc
Message:

21.1.9 release, updated Sessions handler to be more flexible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TFP-WebServer/WebServer/src/UrlHandlers/ApiHandler.cs

    r418 r453  
    3030
    3131                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);
    3334                        if (ctor != null) {
    3435                                AbsWebAPI apiInstance = (AbsWebAPI)ctor.Invoke (apiWithParentCtorArgs);
     
    3738                        }
    3839
    39                         ctor = _type.GetConstructor (apiEmptyCtorTypes);
     40                        ctor = _type.GetConstructor (BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, (Binder)null,
     41                                apiEmptyCtorTypes, (ParameterModifier[])null);
    4042                        if (ctor != null) {
    4143                                AbsWebAPI apiInstance = (AbsWebAPI)ctor.Invoke (apiEmptyCtorArgs);
Note: See TracChangeset for help on using the changeset viewer.