System\ServiceProcess\ServiceBase.cs (41)
67throw new InvalidOperationException(SR.NotInPendingState);
132throw new InvalidOperationException(SR.CannotChangeProperties);
158throw new InvalidOperationException(SR.CannotChangeProperties);
184throw new InvalidOperationException(SR.CannotChangeProperties);
210throw new InvalidOperationException(SR.CannotChangeProperties);
236throw new InvalidOperationException(SR.CannotChangeProperties);
281throw new InvalidOperationException(SR.CannotChangeName);
285throw new ArgumentException(SR.Format(SR.ServiceName, value, ServiceBase.MaxNameLength.ToString(CultureInfo.CurrentCulture)));
400WriteLogEntry(SR.ContinueSuccessful);
406WriteLogEntry(SR.Format(SR.ContinueFailed, e), EventLogEntryType.Error);
424WriteLogEntry(SR.CommandSuccessful);
428WriteLogEntry(SR.Format(SR.CommandFailed, e), EventLogEntryType.Error);
443WriteLogEntry(SR.PauseSuccessful);
449WriteLogEntry(SR.Format(SR.PauseFailed, e), EventLogEntryType.Error);
472WriteLogEntry(SR.PowerEventOK);
476WriteLogEntry(SR.Format(SR.PowerEventFailed, e), EventLogEntryType.Error);
492WriteLogEntry(SR.Format(SR.SessionChangeFailed, e), EventLogEntryType.Error);
521WriteLogEntry(SR.StopSuccessful);
529WriteLogEntry(SR.Format(SR.StopFailed, e), EventLogEntryType.Error);
542WriteLogEntry(SR.ShutdownOK);
560WriteLogEntry(SR.Format(SR.ShutdownFailed, e), EventLogEntryType.Error);
582throw new ArgumentException(SR.NoServices);
620Console.WriteLine(SR.CantStartFromCommandLine);
628service.WriteLogEntry(SR.Format(SR.StartFailed, errorMessage), EventLogEntryType.Error);
654throw new ArgumentException(SR.NoServices);
827WriteLogEntry(SR.StartSuccessful);
834WriteLogEntry(SR.Format(SR.StartFailed, e), EventLogEntryType.Error);
892WriteLogEntry(SR.Format(SR.StartFailed, errorMessage), EventLogEntryType.Error);
936WriteLogEntry(SR.Format(SR.StartFailed, errorMessage), EventLogEntryType.Error);