Skip to content

Configuration

Remote Commands reads the RemoteServer section from appsettings.json when AddRemoteCommands receives an IConfiguration instance. The section is bound to RemoteServerSettings and consumed by RemoteCommandHandler through options.

json
{
    "RemoteServer": {
        "Address": "127.0.0.1",
        "Port": 30001,
        "Whitelisted": [
            "127.0.0.1"
        ],
        "EnableReceiveLog": true
    }
}

Fields

Address: string
IP address that the TCP listener should bind to.

Port: int
TCP port used by the remote command listener.
Default: 0

Whitelisted: string[]
List of remote IP addresses allowed to send commands.

EnableReceiveLog: bool
Enables informational and warning logs for received or unknown commands.

All packages are released under the MIT License.