123456789101112131415 |
- using Microsoft.AspNetCore.Http;
- using Microsoft.Extensions.DependencyInjection;
- namespace CZFW.Framework
- {
- public static class ConfigureFrameworkServicesExtension
- {
- public static IServiceCollection ConfigureFrameworkServices(this IServiceCollection services)
- {
- services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
- return services;
- }
- }
- }
|