Hermod
A cross-platform, modular and fully GDPR-compliant email archival solution!
Loading...
Searching...
No Matches
IMessageReceived.cs
Go to the documentation of this file.
1using System;
2
4
10 public delegate void MessageReceivedEventHandler(object? sender, MessageReceivedEventArgs e);
11
15 public class MessageReceivedEventArgs: EventArgs {
16
22 public MessageReceivedEventArgs(string topic, object? message): base() {
23 Topic = topic;
24 Message = message;
25 }
26
30 public string Topic { get; }
31
35 public object? Message { get; }
36
37 }
38
44 public interface IMessagePublished {
45
50
51 }
52}
53
EventArgs-derived class containing the event arguments for when a message was received on a given top...
MessageReceivedEventArgs(string topic, object? message)
Constructs a new instance of this class.
string Topic
The topic on which the message was sent.
object? Message
The message that was sent.
Provides a standardised method of inter-plugin, message-based communication.
MessageReceivedEventHandler? MessageReceived
An event that is fired by Hermod when a message was published by a plugin or Hermod.
delegate void MessageReceivedEventHandler(object? sender, MessageReceivedEventArgs e)
Event handler delegate for the MessageReceived event.