@@ -101,14 +101,14 @@ public async Task AdditionalDataAfterStreamedMessage_ErrorResponse()
101
101
// Arrange
102
102
SetExpectedErrorsFilter ( writeContext =>
103
103
{
104
- if ( writeContext . LoggerName == "SERVER " + typeof ( GreeterService ) . FullName &&
104
+ if ( writeContext . LoggerName == TestConstants . ServerCallHandlerTestName &&
105
105
writeContext . EventId . Name == "RpcConnectionError" &&
106
106
writeContext . State . ToString ( ) == "Error status code 'Internal' raised." )
107
107
{
108
108
return true ;
109
109
}
110
110
111
- if ( writeContext . LoggerName == "SERVER " + typeof ( GreeterService ) . FullName &&
111
+ if ( writeContext . LoggerName == TestConstants . ServerCallHandlerTestName &&
112
112
writeContext . EventId . Name == "ErrorReadingMessage" &&
113
113
writeContext . State . ToString ( ) == "Error reading message." )
114
114
{
@@ -164,7 +164,7 @@ static async Task<HelloReply> ReturnHeadersTwice(HelloRequest request, ServerCal
164
164
// Arrange
165
165
SetExpectedErrorsFilter ( writeContext =>
166
166
{
167
- return writeContext . LoggerName == "SERVER " + typeof ( DynamicService ) . FullName &&
167
+ return writeContext . LoggerName == TestConstants . ServerCallHandlerTestName &&
168
168
writeContext . EventId . Name == "ErrorExecutingServiceMethod" &&
169
169
writeContext . State . ToString ( ) == "Error when executing service method 'ReturnHeadersTwice'." &&
170
170
writeContext . Exception ! . Message == "Response headers can only be sent once per call." ;
@@ -200,7 +200,7 @@ public async Task ServerMethodReturnsNull_FailureResponse()
200
200
201
201
SetExpectedErrorsFilter ( writeContext =>
202
202
{
203
- return writeContext . LoggerName == "SERVER " + typeof ( DynamicService ) . FullName &&
203
+ return writeContext . LoggerName == TestConstants . ServerCallHandlerTestName &&
204
204
writeContext . EventId . Name == "RpcConnectionError" &&
205
205
writeContext . State . ToString ( ) == "Error status code 'Cancelled' raised." &&
206
206
GetRpcExceptionDetail ( writeContext . Exception ) == "No message returned from method." ;
@@ -239,7 +239,7 @@ public async Task ServerMethodThrowsExceptionWithTrailers_FailureResponse()
239
239
240
240
SetExpectedErrorsFilter ( writeContext =>
241
241
{
242
- return writeContext . LoggerName == "SERVER " + typeof ( DynamicService ) . FullName &&
242
+ return writeContext . LoggerName == TestConstants . ServerCallHandlerTestName &&
243
243
writeContext . EventId . Name == "RpcConnectionError" &&
244
244
writeContext . State . ToString ( ) == "Error status code 'Unknown' raised." &&
245
245
GetRpcExceptionDetail ( writeContext . Exception ) == "User error" ;
@@ -316,7 +316,7 @@ static Task<Empty> ReturnContextInfoInTrailers(Empty request, ServerCallContext
316
316
317
317
SetExpectedErrorsFilter ( writeContext =>
318
318
{
319
- return writeContext . LoggerName == "SERVER " + typeof ( DynamicService ) . FullName &&
319
+ return writeContext . LoggerName == TestConstants . ServerCallHandlerTestName &&
320
320
writeContext . EventId . Name == "ErrorExecutingServiceMethod" ;
321
321
} ) ;
322
322
0 commit comments