Host based as Windows Service application

Releases (5)

This host is well suited for modules that do not require user interaction but need to be constantly running. For example it can be some applications that tracking banking transactions, system monitoring, launching some logic without user interaction, ServiceBus, post-processing, Telegram bot etc.

This host can be installed from command line and it's using Win32 API functions from advapi32.dll library.

By default all tracing logs will be stored in file: C:\log\Flatbed.WinService.log therefore, if you want to see the logs, you need to create this folder on the file system, and if you want to change the behavior of the trace component, you need to edit the section <system.diagnostics> in Flatbed.WinService.exe.config file.

Starting from version 1.0.7142.31597 the key Switch.System.Net.DontEnableSystemDefaultTlsVersions is added to .config file, therefore, the transport encryption settings are taken from the registry, and not from .NET configuration.

Warning

Before launching executable don't forget to add /? key for a list of possible commands. By default when launching service without arguments (list follows), host will launched as console application, will try to load all plugins and started not as a service but as console application. This is done to check is necessary for integration testings to simplify check how all loaded plugins are interacted with each other.

Arguments

Primary arguments to interact with host before launching:

Additional arguments

This arguments are used to customize service in install and uninstall time.

In total, of all the parameters, only lpdwTagId & lpLoadOrderGroup are missed (See CreateService). Unfortunately I don't find any appliance that's why I dont know where to inmplement & test them. If you got good example where those arguments are used I can implement them.