25 references to LoggingServiceState
Microsoft.Build (13)
BackEnd\Components\Logging\ILoggingService.cs (1)
68LoggingServiceState ServiceState
BackEnd\Components\Logging\LoggingService.cs (12)
119private LoggingServiceState _serviceState; 343_serviceState = LoggingServiceState.Instantiated; 461public LoggingServiceState ServiceState => _serviceState; 894ErrorUtilities.VerifyThrow(_serviceState != LoggingServiceState.Shutdown, " The object is shutdown, should not do any operations on a shutdown component"); 910_serviceState = LoggingServiceState.Initialized; 933ErrorUtilities.VerifyThrow(_serviceState != LoggingServiceState.Shutdown, " The object is shutdown, should not do any operations on a shutdown component"); 936_serviceState = LoggingServiceState.ShuttingDown; 986_serviceState = LoggingServiceState.Shutdown; 1032ErrorUtilities.VerifyThrow(_serviceState != LoggingServiceState.Shutdown, " The object is shutdown, should not do any operations on a shutdown component"); 1121ErrorUtilities.VerifyThrow(_serviceState != LoggingServiceState.Shutdown, " The object is shutdown, should not do any operations on a shutdown component"); 1188ErrorUtilities.VerifyThrow(_serviceState != LoggingServiceState.Shutdown, " The object is shutdown, should not do any operations on a shutdown component"); 1300if (_serviceState == LoggingServiceState.Shutdown)
Microsoft.Build.Engine.UnitTests (12)
BackEnd\LoggingService_Tests.cs (11)
69Assert.Equal(LoggingServiceState.Instantiated, logService.ServiceState); 76Assert.Equal(LoggingServiceState.Instantiated, logService.ServiceState); 81Assert.Equal(LoggingServiceState.Shutdown, logService.ServiceState); 99Assert.Equal(LoggingServiceState.Instantiated, ((LoggingService)logServiceComponent).ServiceState); 105Assert.Equal(LoggingServiceState.Initialized, service.ServiceState); 145Assert.Equal(LoggingServiceState.Shutdown, _initializedService.ServiceState); 151Assert.Equal(LoggingServiceState.Shutdown, _initializedService.ServiceState); 159Assert.Equal(LoggingServiceState.Shutdown, _initializedService.ServiceState); 178Assert.Equal(LoggingServiceState.Shutdown, _initializedService.ServiceState); 1099loggingService.ServiceState.ShouldBe(LoggingServiceState.Shutdown); 1118_initializedService.ServiceState.ShouldBe(LoggingServiceState.Shutdown);
BackEnd\MockLoggingService.cs (1)
67public LoggingServiceState ServiceState