24 lines
637 B
C#
24 lines
637 B
C#
using System.Reflection;
|
|
using SharpAbp.Infrastructure.Api.Autofac;
|
|
using UserService.User;
|
|
using IUserService = UserService.User.IUserService;
|
|
using CommonService;
|
|
|
|
namespace UserHost.Middleware
|
|
{
|
|
public class AutofacModule : ApplicationModule
|
|
{
|
|
protected override Assembly CurrentAssembly => typeof(Program).Assembly;
|
|
|
|
protected override Assembly[] GetServiceAssemblies()
|
|
{
|
|
return new[]
|
|
{
|
|
typeof(IUserService).Assembly,
|
|
typeof(UserService.User.UserService).Assembly,
|
|
typeof(ApiLogService).Assembly
|
|
};
|
|
}
|
|
}
|
|
}
|