Christian Kratky
8ad1fb2871
Refactor server certificate classes (breaking change).
pirms 5 gadiem
Christian Kratky
4a7ff9e9ed
Add TLS certificate password support for MQTTnet.Server.
pirms 5 gadiem
Christian Kratky
524f695829
Update docs.
pirms 5 gadiem
Craig Lutgen
59d2a8e551
Changed server crentials property name from password to certificateCredentials
pirms 5 gadiem
Craig Lutgen
9d63500f95
Fix build issue with UWP
pirms 5 gadiem
Craig Lutgen
a03bdc7616
Expose server certificate password and client certificate options to MqttServerOptionsBuilder
pirms 5 gadiem
Christian Kratky
8bfbbd2b29
Refactoring.
pirms 5 gadiem
Christian Kratky
975eb60e90
Fix memory leak when SSL is not working properly.
pirms 5 gadiem
Christian Kratky
9cc96f1888
Refactor log messages.
pirms 5 gadiem
Paul Fake
5c40577bec
Fixed AsyncLock::WaitAsync cancellation bug
There isn't any code in MQTTnet that actually uses a cancellation token in WaitAsync, so this is more of a preventative thing than a bug fix. The original code just checks if the task was completed, not whether it was cancelled. If the process is cancelled immediately before the call to WaitAsync, it'll return as normal (https://referencesource.microsoft.com/#mscorlib/system/threading/SemaphoreSlim.cs,612 ) rather than throw a cancellation exception. This change will ensure we only return the releaser if the wait actually ran to completion rather than exited early due to cancellation. I've tested this, and it properly throws a cancellation exception later on.
pirms 5 gadiem
Christian Kratky
ed06ea6bc9
Add version information to MQTTnet.Server.
pirms 5 gadiem
Paul Fake
e1590fc0c8
Fixed storage queue race condition
Sometimes, TryPublishQueuedMessageAsync would try to remove a message from the storage queue before PublishAsync added it to the storage queue, resulting in a message being stuck in the storage queue forever. Switched the message queue lock to an async lock and synchronized the storage queue updates with the message queue updates.
pirms 5 gadiem
Rudá Cunha
128484c55a
X509Certificate convert to X509Certificate2 in ClientCertificate
pirms 5 gadiem
Christian Kratky
ff22c34bb2
Add first classes for persisted session support.
pirms 5 gadiem
Christian Kratky
e7ba3f76dc
Add options builder methods for remote certificate validation callback.
pirms 5 gadiem
Rudá Cunha
ba8ce15ab4
Add remote certificate validation callback on server
pirms 5 gadiem
Christian Kratky
4eb2b77138
Fix wrong NoDelay usage in server implementation.
pirms 5 gadiem
Jan Eggers
4f66614cdd
fixed #691
pirms 5 gadiem
Christian Kratky
6608172719
MQTTnet.Server: Extend messages API.
pirms 5 gadiem
Christian Kratky
6c8db47e25
Remove dedicated values from contexts and only provide session items.
pirms 5 gadiem
Christian Kratky
3eb5e82d10
Expose connect packet in application message interceptor and subscription interceptor.
pirms 5 gadiem
Christian Kratky
019f428f0a
MQTTnet.Server: Add HTTP API for publishing of messages.
pirms 5 gadiem
Christian Kratky
8916df8d7b
Move ReuseAddress to server options.
pirms 5 gadiem
Christian Kratky
b3ab7a1069
Set socket options to allow reusing address.
pirms 5 gadiem
Christian Kratky
6af58ad90d
Fix MQTTnet.Server startup colors.
pirms 5 gadiem
Christian Kratky
7a767c7d2f
Improve logging and exception handling when stopping the server.
pirms 5 gadiem
Christian Kratky
dd96cf98a8
Make storage update for managed client async.
pirms 5 gadiem
Christian Kratky
6ee3d1640f
Improve logging.
pirms 5 gadiem
Christian Kratky
6f8272210c
Fix MQTTnet.Server app settings to allow external connections.
pirms 5 gadiem
Christian Kratky
ce05cc9936
Fix MQTTnet.Server connection validation.
pirms 5 gadiem
Christian Kratky
985c3084a8
Performance refactoring.
pirms 5 gadiem
Christian Kratky
961a497798
Performance refactoring.
pirms 5 gadiem
vbBerni
a9017b8795
handle storage manager null
pirms 5 gadiem
vbBerni
f76e130283
fix for failed publishing messages get removed from the message queue but not from the storage manager
pirms 5 gadiem
Christian Kratky
0c7a5a992b
Expose more properties of the connection validator context in MQTTnet.Server. Migrate return code to reason code.
pirms 5 gadiem
Christian Kratky
bd665c3d56
Expose more properties to connection validator context.
pirms 5 gadiem
Christian Kratky
e4e46f0094
Add comments.
pirms 5 gadiem
Christian Kratky
591ccfec29
Update authentication.
pirms 5 gadiem
Christian Kratky
ffc1d950da
Add authorization for MQTTnet.Server
pirms 5 gadiem
Christian Kratky
1c004ead6d
Add support for altering the TopicFilter in subscription interceptor.
pirms 5 gadiem
Christian Kratky
b0ad6bda70
Add support for reset of connection statistics. Refactor keep alive monitor.
pirms 5 gadiem
Christian Kratky
6262a16504
Add version to MQTTnet.Server.
pirms 5 gadiem
Christian Kratky
0a6f564446
Add self contained builds in build script.
pirms 5 gadiem
Christian Kratky
c3c0dcf313
Execute disconnected handler in new task.
pirms 5 gadiem
Christian Kratky
60c6074953
Expose client certificate at MQTT connection validator. Make DualMode optional.
pirms 5 gadiem
Christian Kratky
2b9b22def6
Expose new options in server TLS options.
pirms 5 gadiem
Christian Kratky
ffe9c57ae8
Add overload for setting message payload.
pirms 5 gadiem
Christian Kratky
2d03c267e4
Expose binary password to MqttConnectionValidatorContext.
pirms 5 gadiem
Christian Kratky
ccfe67e6a6
Fix wrong password handling (string -> byte[])
pirms 5 gadiem
Christian Kratky
396e0e1697
Add connected timestamp to connection status API.
pirms 5 gadiem