using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Znyc.CloudCar.Auth.HttpContextUser;
namespace Znyc.CloudCar.Core.Config
{
///
/// 上下文启动
///
public static class HttpContextSetup
{
public static void AddHttpContextSetup(this IServiceCollection services)
{
if (services == null) throw new AbandonedMutexException(nameof(services));
services.AddSingleton();
services.AddScoped();
}
}
}