@@ -57,37 +57,37 @@ ChargeControlCommon::ChargeControlCommon(Context& context, unsigned int numConn,
5757 declareConfiguration<bool >(" AuthorizeRemoteTxRequests" ,false ,CONFIGURATION_VOLATILE ,false ,true ,false ,false );
5858 declareConfiguration<int >(" GetConfigurationMaxKeys" ,30 ,CONFIGURATION_VOLATILE ,false ,true ,false ,false );
5959
60- context.getOperationRegistry ().registerRequest (" ChangeAvailability" , [&context] () {
60+ context.getOperationRegistry ().registerOperation (" ChangeAvailability" , [&context] () {
6161 return new Ocpp16::ChangeAvailability (context.getModel ());});
62- context.getOperationRegistry ().registerRequest (" ChangeConfiguration" , [] () {
62+ context.getOperationRegistry ().registerOperation (" ChangeConfiguration" , [] () {
6363 return new Ocpp16::ChangeConfiguration ();});
64- context.getOperationRegistry ().registerRequest (" ClearCache" , [filesystem] () {
64+ context.getOperationRegistry ().registerOperation (" ClearCache" , [filesystem] () {
6565 return new Ocpp16::ClearCache (filesystem);});
66- context.getOperationRegistry ().registerRequest (" GetConfiguration" , [] () {
66+ context.getOperationRegistry ().registerOperation (" GetConfiguration" , [] () {
6767 return new Ocpp16::GetConfiguration ();});
68- context.getOperationRegistry ().registerRequest (" RemoteStartTransaction" , [&context] () {
68+ context.getOperationRegistry ().registerOperation (" RemoteStartTransaction" , [&context] () {
6969 return new Ocpp16::RemoteStartTransaction (context.getModel ());});
70- context.getOperationRegistry ().registerRequest (" RemoteStopTransaction" , [&context] () {
70+ context.getOperationRegistry ().registerOperation (" RemoteStopTransaction" , [&context] () {
7171 return new Ocpp16::RemoteStopTransaction (context.getModel ());});
72- context.getOperationRegistry ().registerRequest (" Reset" , [&context] () {
72+ context.getOperationRegistry ().registerOperation (" Reset" , [&context] () {
7373 return new Ocpp16::Reset (context.getModel ());});
74- context.getOperationRegistry ().registerRequest (" TriggerMessage" , [&context] () {
74+ context.getOperationRegistry ().registerOperation (" TriggerMessage" , [&context] () {
7575 return new Ocpp16::TriggerMessage (context.getModel ());});
76- context.getOperationRegistry ().registerRequest (" UnlockConnector" , [&context] () {
76+ context.getOperationRegistry ().registerOperation (" UnlockConnector" , [&context] () {
7777 return new Ocpp16::UnlockConnector (context.getModel ());});
7878
7979 /*
8080 * Register further message handlers to support echo mode: when this library
8181 * is connected with a WebSocket echo server, let it reply to its own requests.
8282 * Mocking an OCPP Server on the same device makes running (unit) tests easier.
8383 */
84- context.getOperationRegistry ().registerRequest (" Authorize" , [&context] () {
84+ context.getOperationRegistry ().registerOperation (" Authorize" , [&context] () {
8585 return new Ocpp16::Authorize (context.getModel (), nullptr );});
86- context.getOperationRegistry ().registerRequest (" StartTransaction" , [&context] () {
86+ context.getOperationRegistry ().registerOperation (" StartTransaction" , [&context] () {
8787 return new Ocpp16::StartTransaction (context.getModel (), nullptr );});
88- context.getOperationRegistry ().registerRequest (" StatusNotification" , [&context] () {
88+ context.getOperationRegistry ().registerOperation (" StatusNotification" , [&context] () {
8989 return new Ocpp16::StatusNotification (-1 , OcppEvseState::NOT_SET , Timestamp ());});
90- context.getOperationRegistry ().registerRequest (" StopTransaction" , [&context] () {
90+ context.getOperationRegistry ().registerOperation (" StopTransaction" , [&context] () {
9191 return new Ocpp16::StopTransaction (context.getModel (), nullptr );});
9292}
9393
0 commit comments