Currently Mqtt.Server's web UI can be completely disabled via 'UseAdminWebUI': false configuration setting. However, this is just simple configuration flag for application startup code and doesn't remove Blazor UI-ralated code from the application bundle if we don't need UI at all. Conversion to runtime feature switch gives us extra benefits:
.NET standardised approach is used
Redundant application code guarded by the feature switch property can be completely trimmed off by the linker during publish
Currently Mqtt.Server's web UI can be completely disabled via 'UseAdminWebUI': false configuration setting. However, this is just simple configuration flag for application startup code and doesn't remove Blazor UI-ralated code from the application bundle if we don't need UI at all. Conversion to runtime feature switch gives us extra benefits: