Skip to content

Commit 9415eb4

Browse files
author
Seba Gómez
committed
Add a thrid parameter to the GeneXus proc which is the timestamp of the call
1 parent 8125ee0 commit 9415eb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MQTTLib/MqttClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ public void ProcessMessage(MqttApplicationMessageReceivedEventArgs msg)
8484
if (procType == null)
8585
throw new InvalidDataException("Data type not found");
8686

87-
var methodInfo = procType.GetMethod("execute", new Type[] { typeof(string), typeof(string) });
87+
var methodInfo = procType.GetMethod("execute", new Type[] { typeof(string), typeof(string) , typeof(DateTime)});
8888
if (methodInfo == null)
8989
throw new NotImplementedException("Method 'execute' not found");
9090

9191
var obj = Activator.CreateInstance(procType);
92-
methodInfo.Invoke(obj, new object[] { msg.ApplicationMessage.Topic, Encoding.UTF8.GetString(msg.ApplicationMessage.Payload) });
92+
methodInfo.Invoke(obj, new object[] { msg.ApplicationMessage.Topic, Encoding.UTF8.GetString(msg.ApplicationMessage.Payload), DateTime.Now });
9393
}
9494
catch (Exception ex)
9595
{

0 commit comments

Comments
 (0)