Skip to content

Commit

Permalink
Refactorings
Browse files Browse the repository at this point in the history
  • Loading branch information
ahzf committed Jul 23, 2024
1 parent 67672ca commit eee0357
Show file tree
Hide file tree
Showing 40 changed files with 231 additions and 204 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,37 +19,37 @@

using org.GraphDefined.Vanaheimr.Hermod;

using cloud.charging.open.protocols.OCPPv2_1.WebSockets;

#endregion

namespace cloud.charging.open.protocols.OCPPv2_1.NetworkingNode
{

/// <summary>
/// A delegate called whenever a DeleteFile request will be sent to the CSMS.
/// A delegate called whenever a DeleteFile request was sent.
/// </summary>
/// <param name="Timestamp">The timestamp of the DeleteFile request.</param>
/// <param name="Sender">The sender of the DeleteFile request.</param>
/// <param name="Connection">The HTTP Web Socket server connection.</param>
/// <param name="Timestamp">The timestamp of the request logging.</param>
/// <param name="Sender">The sender of the request.</param>
/// <param name="Request">The request.</param>
public delegate Task OnDeleteFileRequestSentDelegate(DateTime Timestamp,
IEventSender Sender,
//IWebSocketConnection Connection,
DeleteFileRequest Request);
/// <param name="SendMessageResult">The result of the send message process.</param>
public delegate Task OnDeleteFileRequestSentDelegate(DateTime Timestamp,
IEventSender Sender,
DeleteFileRequest Request,
SendMessageResult SendMessageResult);

/// <summary>
/// A delegate called whenever a response to a DeleteFile request was received.
/// </summary>
/// <param name="Timestamp">The timestamp of the DeleteFile request.</param>
/// <param name="Sender">The sender of the DeleteFile request.</param>
/// <param name="Connection">The HTTP Web Socket server connection.</param>
/// <param name="Request">The DeleteFile request.</param>
/// <param name="Response">The DeleteFile response.</param>
/// <param name="Runtime">The runtime of the DeleteFile request.</param>
public delegate Task OnDeleteFileResponseReceivedDelegate(DateTime Timestamp,
IEventSender Sender,
//IWebSocketConnection Connection,
DeleteFileRequest Request,
DeleteFileResponse Response,
TimeSpan Runtime);
/// <param name="Timestamp">The timestamp of the response logging.</param>
/// <param name="Sender">The sender of the request/response.</param>
/// <param name="Request">The request.</param>
/// <param name="Response">The response.</param>
/// <param name="Runtime">The runtime of the request/response.</param>
public delegate Task OnDeleteFileResponseReceivedDelegate(DateTime Timestamp,
IEventSender Sender,
DeleteFileRequest Request,
DeleteFileResponse Response,
TimeSpan Runtime);

}
Original file line number Diff line number Diff line change
Expand Up @@ -19,37 +19,37 @@

using org.GraphDefined.Vanaheimr.Hermod;

using cloud.charging.open.protocols.OCPPv2_1.WebSockets;

#endregion

namespace cloud.charging.open.protocols.OCPPv2_1.NetworkingNode
{

/// <summary>
/// A delegate called whenever a GetFile request will be sent to the CSMS.
/// A delegate called whenever a GetFile request was sent.
/// </summary>
/// <param name="Timestamp">The timestamp of the GetFile request.</param>
/// <param name="Sender">The sender of the GetFile request.</param>
/// <param name="Connection">The HTTP Web Socket server connection.</param>
/// <param name="Timestamp">The timestamp of the request logging.</param>
/// <param name="Sender">The sender of the request.</param>
/// <param name="Request">The request.</param>
public delegate Task OnGetFileRequestSentDelegate(DateTime Timestamp,
IEventSender Sender,
//IWebSocketConnection Connection,
GetFileRequest Request);
/// <param name="SendMessageResult">The result of the send message process.</param>
public delegate Task OnGetFileRequestSentDelegate(DateTime Timestamp,
IEventSender Sender,
GetFileRequest Request,
SendMessageResult SendMessageResult);

/// <summary>
/// A delegate called whenever a response to a GetFile request was received.
/// </summary>
/// <param name="Timestamp">The timestamp of the GetFile request.</param>
/// <param name="Sender">The sender of the GetFile request.</param>
/// <param name="Connection">The HTTP Web Socket server connection.</param>
/// <param name="Request">The GetFile request.</param>
/// <param name="Response">The GetFile response.</param>
/// <param name="Runtime">The runtime of the GetFile request.</param>
public delegate Task OnGetFileResponseReceivedDelegate(DateTime Timestamp,
IEventSender Sender,
//IWebSocketConnection Connection,
GetFileRequest Request,
GetFileResponse Response,
TimeSpan Runtime);
/// <param name="Timestamp">The timestamp of the response logging.</param>
/// <param name="Sender">The sender of the request/response.</param>
/// <param name="Request">The request.</param>
/// <param name="Response">The response.</param>
/// <param name="Runtime">The runtime of the request/response.</param>
public delegate Task OnGetFileResponseReceivedDelegate(DateTime Timestamp,
IEventSender Sender,
GetFileRequest Request,
GetFileResponse Response,
TimeSpan Runtime);

}
Original file line number Diff line number Diff line change
Expand Up @@ -19,35 +19,35 @@

using org.GraphDefined.Vanaheimr.Hermod;

using cloud.charging.open.protocols.OCPPv2_1.WebSockets;

#endregion

namespace cloud.charging.open.protocols.OCPPv2_1.NetworkingNode
{

/// <summary>
/// A delegate called whenever a ListDirectory request will be sent to the CSMS.
/// A delegate called whenever a ListDirectory request was sent.
/// </summary>
/// <param name="Timestamp">The timestamp of the ListDirectory request.</param>
/// <param name="Sender">The sender of the ListDirectory request.</param>
/// <param name="Connection">The HTTP Web Socket server connection.</param>
/// <param name="Timestamp">The timestamp of the request logging.</param>
/// <param name="Sender">The sender of the request.</param>
/// <param name="Request">The request.</param>
/// <param name="SendMessageResult">The result of the send message process.</param>
public delegate Task OnListDirectoryRequestSentDelegate(DateTime Timestamp,
IEventSender Sender,
//IWebSocketConnection Connection,
ListDirectoryRequest Request);
ListDirectoryRequest Request,
SendMessageResult SendMessageResult);

/// <summary>
/// A delegate called whenever a response to a ListDirectory request was received.
/// </summary>
/// <param name="Timestamp">The timestamp of the ListDirectory request.</param>
/// <param name="Sender">The sender of the ListDirectory request.</param>
/// <param name="Connection">The HTTP Web Socket server connection.</param>
/// <param name="Request">The ListDirectory request.</param>
/// <param name="Response">The ListDirectory response.</param>
/// <param name="Runtime">The runtime of the ListDirectory request.</param>
/// <param name="Timestamp">The timestamp of the response logging.</param>
/// <param name="Sender">The sender of the request/response.</param>
/// <param name="Request">The request.</param>
/// <param name="Response">The response.</param>
/// <param name="Runtime">The runtime of the request/response.</param>
public delegate Task OnListDirectoryResponseReceivedDelegate(DateTime Timestamp,
IEventSender Sender,
//IWebSocketConnection Connection,
ListDirectoryRequest Request,
ListDirectoryResponse Response,
TimeSpan Runtime);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,35 +19,35 @@

using org.GraphDefined.Vanaheimr.Hermod;

using cloud.charging.open.protocols.OCPPv2_1.WebSockets;

#endregion

namespace cloud.charging.open.protocols.OCPPv2_1.NetworkingNode
{

/// <summary>
/// A delegate called whenever a SendFile request will be sent to the CSMS.
/// A delegate called whenever a SendFile request was sent.
/// </summary>
/// <param name="Timestamp">The timestamp of the SendFile request.</param>
/// <param name="Sender">The sender of the SendFile request.</param>
/// <param name="Connection">The HTTP Web Socket server connection.</param>
/// <param name="Timestamp">The timestamp of the request logging.</param>
/// <param name="Sender">The sender of the request.</param>
/// <param name="Request">The request.</param>
public delegate Task OnSendFileRequestSentDelegate(DateTime Timestamp,
IEventSender Sender,
//IWebSocketConnection Connection,
SendFileRequest Request);
/// <param name="SendMessageResult">The result of the send message process.</param>
public delegate Task OnSendFileRequestSentDelegate(DateTime Timestamp,
IEventSender Sender,
SendFileRequest Request,
SendMessageResult SendMessageResult);

/// <summary>
/// A delegate called whenever a response to a SendFile request was received.
/// </summary>
/// <param name="Timestamp">The timestamp of the SendFile request.</param>
/// <param name="Sender">The sender of the SendFile request.</param>
/// <param name="Connection">The HTTP Web Socket server connection.</param>
/// <param name="Request">The SendFile request.</param>
/// <param name="Response">The SendFile response.</param>
/// <param name="Runtime">The runtime of the SendFile request.</param>
/// <param name="Timestamp">The timestamp of the response logging.</param>
/// <param name="Sender">The sender of the request/response.</param>
/// <param name="Request">The request.</param>
/// <param name="Response">The response.</param>
/// <param name="Runtime">The runtime of the request/response.</param>
public delegate Task OnSendFileResponseReceivedDelegate(DateTime Timestamp,
IEventSender Sender,
//IWebSocketConnection Connection,
SendFileRequest Request,
SendFileResponse Response,
TimeSpan Runtime);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,27 @@ namespace cloud.charging.open.protocols.OCPPv2_1.NetworkingNode
/// <summary>
/// A delegate called whenever a DataTransfer request was sent.
/// </summary>
/// <param name="Timestamp">The timestamp of the DataTransfer request.</param>
/// <param name="Sender">The sender of the DataTransfer request.</param>
/// <param name="Request">The DataTransfer request.</param>
/// <param name="Timestamp">The timestamp of the request logging.</param>
/// <param name="Sender">The sender of the request.</param>
/// <param name="Request">The request.</param>
/// <param name="SendMessageResult">The result of the send message process.</param>
public delegate Task OnDataTransferRequestSentDelegate(DateTime Timestamp,
IEventSender Sender,
DataTransferRequest Request,
SendMessageResult SendMessageResult);
public delegate Task OnDataTransferRequestSentDelegate(DateTime Timestamp,
IEventSender Sender,
DataTransferRequest Request,
SendMessageResult SendMessageResult);

/// <summary>
/// A delegate called whenever a response to a DataTransfer request was received.
/// </summary>
/// <param name="Timestamp">The timestamp of the DataTransfer request.</param>
/// <param name="Sender">The sender of the DataTransfer request.</param>
/// <param name="Request">The DataTransfer request.</param>
/// <param name="Response">The DataTransfer response.</param>
/// <param name="Runtime">The runtime of the DataTransfer request.</param>
public delegate Task OnDataTransferResponseReceivedDelegate(DateTime Timestamp,
IEventSender Sender,
DataTransferRequest Request,
DataTransferResponse Response,
TimeSpan Runtime);
/// <param name="Timestamp">The timestamp of the response logging.</param>
/// <param name="Sender">The sender of the request/response.</param>
/// <param name="Request">The request.</param>
/// <param name="Response">The response.</param>
/// <param name="Runtime">The runtime of the request/response.</param>
public delegate Task OnDataTransferResponseReceivedDelegate(DateTime Timestamp,
IEventSender Sender,
DataTransferRequest Request,
DataTransferResponse Response,
TimeSpan Runtime);

}
Original file line number Diff line number Diff line change
Expand Up @@ -19,35 +19,35 @@

using org.GraphDefined.Vanaheimr.Hermod;

using cloud.charging.open.protocols.OCPPv2_1.WebSockets;

#endregion

namespace cloud.charging.open.protocols.OCPPv2_1.NetworkingNode
{

/// <summary>
/// A delegate called whenever a AddSignaturePolicy request will be sent to the CSMS.
/// A delegate called whenever a AddSignaturePolicy request was sent.
/// </summary>
/// <param name="Timestamp">The timestamp of the AddSignaturePolicy request.</param>
/// <param name="Sender">The sender of the AddSignaturePolicy request.</param>
/// <param name="Connection">The HTTP Web Socket server connection.</param>
/// <param name="Timestamp">The timestamp of the request logging.</param>
/// <param name="Sender">The sender of the request.</param>
/// <param name="Request">The request.</param>
/// <param name="SendMessageResult">The result of the send message process.</param>
public delegate Task OnAddSignaturePolicyRequestSentDelegate(DateTime Timestamp,
IEventSender Sender,
//IWebSocketConnection Connection,
AddSignaturePolicyRequest Request);
AddSignaturePolicyRequest Request,
SendMessageResult SendMessageResult);

/// <summary>
/// A delegate called whenever a response to a AddSignaturePolicy request was received.
/// </summary>
/// <param name="Timestamp">The timestamp of the AddSignaturePolicy request.</param>
/// <param name="Sender">The sender of the AddSignaturePolicy request.</param>
/// <param name="Connection">The HTTP Web Socket server connection.</param>
/// <param name="Request">The AddSignaturePolicy request.</param>
/// <param name="Response">The AddSignaturePolicy response.</param>
/// <param name="Runtime">The runtime of the AddSignaturePolicy request.</param>
/// <param name="Timestamp">The timestamp of the response logging.</param>
/// <param name="Sender">The sender of the request/response.</param>
/// <param name="Request">The request.</param>
/// <param name="Response">The response.</param>
/// <param name="Runtime">The runtime of the request/response.</param>
public delegate Task OnAddSignaturePolicyResponseReceivedDelegate(DateTime Timestamp,
IEventSender Sender,
//IWebSocketConnection Connection,
AddSignaturePolicyRequest Request,
AddSignaturePolicyResponse Response,
TimeSpan Runtime);
Expand Down
Loading

0 comments on commit eee0357

Please sign in to comment.