|
|
|
@ -1,12 +1,9 @@
|
|
|
|
|
using Autofac;
|
|
|
|
|
using Autofac.Extras.Quartz;
|
|
|
|
|
using ce.autofac.extension;
|
|
|
|
|
using Infrastructure.Cache;
|
|
|
|
|
using Infrastructure.Extensions.AutofacManager;
|
|
|
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
using Microsoft.Extensions.DependencyModel;
|
|
|
|
|
using OpenAuth.App.Interface;
|
|
|
|
|
using OpenAuth.App.SSO;
|
|
|
|
|
using OpenAuth.Auth;
|
|
|
|
|
using OpenAuth.Auth.AuthStrategies;
|
|
|
|
@ -35,10 +32,10 @@ namespace OpenAuth.App
|
|
|
|
|
builder.RegisterAssemblyTypes(typeof(UserManager).Assembly).InstancePerLifetimeScope();
|
|
|
|
|
//注册app层
|
|
|
|
|
//builder.RegisterAssemblyTypes(Assembly.GetExecutingAssembly()).InstancePerLifetimeScope();
|
|
|
|
|
// builder.RegisterAssemblyTypes(Assembly.GetExecutingAssembly())
|
|
|
|
|
//.Where(t => t.Name.EndsWith("App"))
|
|
|
|
|
//.AsSelf()
|
|
|
|
|
//.InstancePerLifetimeScope();
|
|
|
|
|
//builder.RegisterAssemblyTypes(Assembly.GetExecutingAssembly())
|
|
|
|
|
//.Where(t => t.Name.EndsWith("App"))
|
|
|
|
|
//.AsSelf()
|
|
|
|
|
//.InstancePerLifetimeScope();
|
|
|
|
|
|
|
|
|
|
builder.RegisterType(typeof(RedisCacheContext)).As(typeof(ICacheContext)).InstancePerLifetimeScope();
|
|
|
|
|
//builder.RegisterType(typeof(CacheContext)).As(typeof(ICacheContext));
|
|
|
|
|