public async override Task <bool> InvokeAsync(string paramList) { var result = await ServiceCommands.GetServiceStatusAsync(); if (result == null) { OutputWarning("Service is not installed on this machine."); return(true); } OutputInformation("{0}", result.Value); return(true); }
public override async Task <bool> InvokeAsync(string paramList) { var result = await ServiceCommands.GetServiceStatusAsync(); if (result == null) { OutputWarning("Service is not installed on this machine."); return(true); } var response = await ServiceCommands.RestartServiceAsync(); OutputInformation("Service is {0}.", response); return(true); }