|
@@ -38,6 +38,9 @@ namespace EVCB_OCPP.WSServer.Service
|
|
|
this.logger = logger;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ private static string Session_VID_Key = "StationConfigService_Station";
|
|
|
+
|
|
|
private readonly ProtalServer protalServer;
|
|
|
private readonly ServerMessageService messageService;
|
|
|
private readonly ConfirmWaitingMessageSerevice confirmWaitingMessageSerevice;
|
|
@@ -61,7 +64,7 @@ namespace EVCB_OCPP.WSServer.Service
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ SetSessionVendorId(wsClient, vendorId.value);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -75,20 +78,20 @@ namespace EVCB_OCPP.WSServer.Service
|
|
|
private int? GetSessionVendorId(WsClientData session)
|
|
|
{
|
|
|
if (session is null ||
|
|
|
- !session.Data.ContainsKey(Session_Station_Key))
|
|
|
+ !session.Data.ContainsKey(Session_VID_Key))
|
|
|
{
|
|
|
return null;
|
|
|
}
|
|
|
- return (int?)session.Data[Session_Station_Key];
|
|
|
+ return (int?)session.Data[Session_VID_Key];
|
|
|
}
|
|
|
|
|
|
- private void SetSessionStation(WsClientData session, int? stationId)
|
|
|
+ private void SetSessionVendorId(WsClientData session, string vid)
|
|
|
{
|
|
|
if (session is null)
|
|
|
{
|
|
|
return;
|
|
|
}
|
|
|
- session.Data[Session_Station_Key] = stationId;
|
|
|
+ session.Data[Session_VID_Key] = vid;
|
|
|
}
|
|
|
}
|
|
|
}
|