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