mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-10-31 09:09:25 +08:00 
			
		
		
		
	(#674) changed TypeResolver in Cli/logging
to adhere to the specifications set in #620
This commit is contained in:
		 Nils Andresen
					Nils Andresen
				
			
				
					committed by
					
						 Patrik Svensson
						Patrik Svensson
					
				
			
			
				
	
			
			
			 Patrik Svensson
						Patrik Svensson
					
				
			
						parent
						
							52c1d9122b
						
					
				
				
					commit
					9a6d8d92b4
				
			| @@ -15,6 +15,11 @@ public sealed class TypeResolver : ITypeResolver | ||||
|  | ||||
|     public object Resolve(Type type) | ||||
|     { | ||||
|         return _provider.GetRequiredService(type); | ||||
|         if (type == null) | ||||
|         { | ||||
|             return null; | ||||
|         } | ||||
|  | ||||
|         return _provider.GetService(type); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user