Class InterceptingPublishEventArgs
public sealed class InterceptingPublishEventArgs : EventArgs
- Inheritance
-
InterceptingPublishEventArgs
- Inherited Members
Constructors
InterceptingPublishEventArgs(MqttApplicationMessage, CancellationToken, string, IDictionary)
public InterceptingPublishEventArgs(MqttApplicationMessage applicationMessage, CancellationToken cancellationToken, string clientId, IDictionary sessionItems)
Parameters
applicationMessage
MqttApplicationMessagecancellationToken
CancellationTokenclientId
stringsessionItems
IDictionary
Properties
ApplicationMessage
public MqttApplicationMessage ApplicationMessage { get; set; }
Property Value
CancellationToken
Gets the cancellation token which can indicate that the client connection gets down.
public CancellationToken CancellationToken { get; }
Property Value
ClientId
Gets the client identifier. Hint: This identifier needs to be unique over all used clients / devices on the broker to avoid connection issues.
public string ClientId { get; }
Property Value
CloseConnection
public bool CloseConnection { get; set; }
Property Value
ProcessPublish
Gets or sets whether the publish should be processed internally.
public bool ProcessPublish { get; set; }
Property Value
Response
Gets the response which will be sent to the client via the PUBACK etc. packets.
public PublishResponse Response { get; }
Property Value
SessionItems
Gets or sets a key/value collection that can be used to share data within the scope of this session.
public IDictionary SessionItems { get; }