1 type derived from ServiceBase
Microsoft.Extensions.Hosting.WindowsServices (1)
WindowsServiceLifetime.cs (1)
18public class WindowsServiceLifetime : ServiceBase, IHostLifetime
1 instantiation of ServiceBase
System.ServiceProcess.ServiceController (1)
System\ServiceProcess\ServiceBase.cs (1)
43/// Creates a new instance of the <see cref='System.ServiceProcess.ServiceBase()'/> class.
16 references to ServiceBase
System.ServiceProcess (1)
System.ServiceProcess.cs (1)
5[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ServiceProcess.ServiceBase))]
System.ServiceProcess.ServiceController (15)
System\ServiceProcess\ServiceBase.cs (12)
17/// <para>Provides a base class for a service that will exist as part of a service application. <see cref='System.ServiceProcess.ServiceBase'/> 285throw new ArgumentException(SR.Format(SR.ServiceName, value, ServiceBase.MaxNameLength.ToString(CultureInfo.CurrentCulture))); 293serviceName.Length <= ServiceBase.MaxNameLength && // not too long 298/// the <see cref='System.ServiceProcess.ServiceBase'/>.</para> 299/// This is called from <see cref="Run(ServiceBase[])"/> when all 566/// <para>When implemented in a derived class, <see cref='System.ServiceProcess.ServiceBase.OnCustomCommand'/> 579public static unsafe void Run(ServiceBase[] services) 595ServiceBase service = services[index]; 607foreach (ServiceBase service in services) 623foreach (ServiceBase service in services) 651public static void Run(ServiceBase service) 656Run(new ServiceBase[] { service });
System\ServiceProcess\ServiceController.cs (3)
285if (!ServiceBase.ValidServiceName(value)) 286throw new ArgumentException(SR.Format(SR.ServiceName, value, ServiceBase.MaxNameLength.ToString())); 523throw new InvalidOperationException(SR.Format(SR.ServiceName, userGivenName, ServiceBase.MaxNameLength.ToString()));