21 lines
		
	
	
		
			673 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			673 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| // ***********************************************************************
 | |
| // <copyright file="HttpLoggingMiddlewareExtension.cs">
 | |
| //     Heath
 | |
| // </copyright>
 | |
| // ***********************************************************************
 | |
| 
 | |
| using Lib.Common.LoggingAPI.Common.Settings;
 | |
| using Microsoft.AspNetCore.Builder;
 | |
| 
 | |
| namespace Lib.Common.LoggingAPI.Service.Middleware.HttpLogger
 | |
| {
 | |
|     public static class HttpLoggingMiddlewareExtension
 | |
|     {
 | |
|         public static IApplicationBuilder UseCustomHttpLogging(this IApplicationBuilder builder, ServiceSettings settings)
 | |
|         {
 | |
|             return builder.UseMiddleware<HttpLoggingMiddleware>(settings);
 | |
|         }
 | |
|     }
 | |
| }
 | |
| 
 | 
