@@ -308,7 +308,7 @@ internal IBatchProcessingAspectHandler CreateAspectHandler(IReadOnlyList<object>
308308 BatchEventType . DynamoDbStream => CreateTypedBatchProcessingAspectHandler ( ( ) => TypedDynamoDbStreamBatchProcessor . TypedInstance , args ) ,
309309 BatchEventType . KinesisDataStream => CreateTypedBatchProcessingAspectHandler ( ( ) => TypedKinesisEventBatchProcessor . TypedInstance , args ) ,
310310 BatchEventType . Sqs => CreateTypedBatchProcessingAspectHandler ( ( ) => TypedSqsBatchProcessor . TypedInstance , args ) ,
311- _ => throw new ArgumentOutOfRangeException ( nameof ( eventType ) , eventType , "Unsupported event type." )
311+ _ => throw new ArgumentOutOfRangeException ( $ " { eventType } " , eventType , "Unsupported event type." )
312312 } ;
313313 }
314314
@@ -318,7 +318,7 @@ internal IBatchProcessingAspectHandler CreateAspectHandler(IReadOnlyList<object>
318318 BatchEventType . DynamoDbStream => CreateBatchProcessingAspectHandler ( ( ) => DynamoDbStreamBatchProcessor . Instance ) ,
319319 BatchEventType . KinesisDataStream => CreateBatchProcessingAspectHandler ( ( ) => KinesisEventBatchProcessor . Instance ) ,
320320 BatchEventType . Sqs => CreateBatchProcessingAspectHandler ( ( ) => SqsBatchProcessor . Instance ) ,
321- _ => throw new ArgumentOutOfRangeException ( nameof ( eventType ) , eventType , "Unsupported event type." )
321+ _ => throw new ArgumentOutOfRangeException ( $ " { eventType } " , eventType , "Unsupported event type." )
322322 } ;
323323 }
324324
@@ -533,7 +533,7 @@ private TypedBatchProcessingAspectHandler<TEvent, TRecord> CreateTypedBatchProce
533533 return new TypedBatchProcessingAspectHandler < TEvent , TRecord > ( typedBatchProcessor , typedHandler , hasContext , deserializationOptions , processingOptions ) ;
534534 }
535535
536- private BatchEventType GetEventTypeFromArgs ( IReadOnlyList < object > args )
536+ private static BatchEventType GetEventTypeFromArgs ( IReadOnlyList < object > args )
537537 {
538538 if ( args == null || args . Count == 0 || ! EventTypes . TryGetValue ( args [ 0 ] . GetType ( ) , out var eventType ) )
539539 {
0 commit comments