Migrating toward WingPropHandle
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "WingServer.h"
|
||||
#include "WingHandler.h"
|
||||
#include "WingProperty.h"
|
||||
#include "WingPropHandle.h"
|
||||
#include "WingManual.h"
|
||||
#include "WingLogCapture.h"
|
||||
#include "WingUtils.h"
|
||||
@@ -328,7 +328,9 @@ void UWingServer::TryCallHandler(const FString &Line)
|
||||
Handler->ConfigurationObject = Found->Config.Get();
|
||||
|
||||
// Populate the handler object with the request parameters.
|
||||
if (!FWingProperty::PopulateFromJson(HandlerObj->GetClass(), HandlerObj.Get(), &*Request))
|
||||
WingPropHandle Props;
|
||||
WingPropHandle::Handles Handles = Props.AllProperties(HandlerObj.Get(), true, CPF_None);
|
||||
if (!WingPropHandle::PopulateFromJson(Handles, *Request, false))
|
||||
{
|
||||
UWingServer::SuggestManual(WingManual::Section::HandlerHelp);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user