TopshelfSettingsExtensions.

SetAutostart(TopshelfSettings, bool) Method

Summary

Sets if the service should automatically start when windows loads
Assembly
Cake.Topshelf.dll
Namespace
Cake.Topshelf
Containing Type
TopshelfSettingsExtensions

Syntax

public static TopshelfSettings SetAutostart(this TopshelfSettings settings, bool autostart = true)

Parameters

Name Type Description
settings TopshelfSettings The installation settings.
autostart bool if the service should automatically start when windows loads

Return Value

Type Description
TopshelfSettings The same TopshelfSettings instance so that multiple calls can be chained.