ServiceAliases.

RestartService(ICakeContext, string, string, int) Method

Summary

Restarts a named service
Assembly
Cake.Services.dll
Namespace
Cake.Services
Containing Type
ServiceAliases

Syntax

public static bool RestartService(this ICakeContext context, string name, string computer, int timeout)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The cake context.
name string The name that identifies the service to the system.
computer string The computer on which the service resides.
timeout int The duration to wait for the command to complete.

Return Value

Type Description
bool If the service was restarted.