22 references to LoggingServiceState
Microsoft.Build (12)
BackEnd\Components\Logging\ILoggingService.cs (1)
68
LoggingServiceState
ServiceState
BackEnd\Components\Logging\LoggingService.cs (11)
113
private
LoggingServiceState
_serviceState;
330
_serviceState =
LoggingServiceState
.Instantiated;
448
public
LoggingServiceState
ServiceState => _serviceState;
856
ErrorUtilities.VerifyThrow(_serviceState !=
LoggingServiceState
.Shutdown, " The object is shutdown, should not do any operations on a shutdown component");
871
_serviceState =
LoggingServiceState
.Initialized;
892
ErrorUtilities.VerifyThrow(_serviceState !=
LoggingServiceState
.Shutdown, " The object is shutdown, should not do any operations on a shutdown component");
895
_serviceState =
LoggingServiceState
.ShuttingDown;
945
_serviceState =
LoggingServiceState
.Shutdown;
1038
ErrorUtilities.VerifyThrow(_serviceState !=
LoggingServiceState
.Shutdown, " The object is shutdown, should not do any operations on a shutdown component");
1127
ErrorUtilities.VerifyThrow(_serviceState !=
LoggingServiceState
.Shutdown, " The object is shutdown, should not do any operations on a shutdown component");
1192
ErrorUtilities.VerifyThrow(_serviceState !=
LoggingServiceState
.Shutdown, " The object is shutdown, should not do any operations on a shutdown component");
Microsoft.Build.Engine.UnitTests (10)
BackEnd\LoggingService_Tests.cs (9)
70
Assert.Equal(
LoggingServiceState
.Instantiated, logService.ServiceState);
77
Assert.Equal(
LoggingServiceState
.Instantiated, logService.ServiceState);
82
Assert.Equal(
LoggingServiceState
.Shutdown, logService.ServiceState);
100
Assert.Equal(
LoggingServiceState
.Instantiated, ((LoggingService)logServiceComponent).ServiceState);
106
Assert.Equal(
LoggingServiceState
.Initialized, service.ServiceState);
146
Assert.Equal(
LoggingServiceState
.Shutdown, _initializedService.ServiceState);
152
Assert.Equal(
LoggingServiceState
.Shutdown, _initializedService.ServiceState);
160
Assert.Equal(
LoggingServiceState
.Shutdown, _initializedService.ServiceState);
179
Assert.Equal(
LoggingServiceState
.Shutdown, _initializedService.ServiceState);
BackEnd\MockLoggingService.cs (1)
67
public
LoggingServiceState
ServiceState