Table of Contents

Class InterceptingPublishEventArgs

Namespace
MQTTnet.Server
Assembly
MQTTnet.dll
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 MqttApplicationMessage
cancellationToken CancellationToken
clientId string
sessionItems IDictionary

Properties

ApplicationMessage

public MqttApplicationMessage ApplicationMessage { get; set; }

Property Value

MqttApplicationMessage

CancellationToken

Gets the cancellation token which can indicate that the client connection gets down.

public CancellationToken CancellationToken { get; }

Property Value

CancellationToken

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

string

CloseConnection

public bool CloseConnection { get; set; }

Property Value

bool

ProcessPublish

Gets or sets whether the publish should be processed internally.

public bool ProcessPublish { get; set; }

Property Value

bool

Response

Gets the response which will be sent to the client via the PUBACK etc. packets.

public PublishResponse Response { get; }

Property Value

PublishResponse

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; }

Property Value

IDictionary