添加项目文件。
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using System.Reflection;
|
||||
using CommonService;
|
||||
using CustomerService.Customer;
|
||||
using SharpAbp.Infrastructure.Api.Autofac;
|
||||
|
||||
namespace CustomerHost.Middleware
|
||||
{
|
||||
public class AutofacModule : ApplicationModule
|
||||
{
|
||||
protected override Assembly CurrentAssembly => typeof(Program).Assembly;
|
||||
|
||||
protected override Assembly[] GetServiceAssemblies()
|
||||
{
|
||||
return new[]
|
||||
{
|
||||
typeof(ICustomerService).Assembly,
|
||||
typeof(CustomerService.Customer.CustomerService).Assembly,
|
||||
typeof(ApiLogService).Assembly
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user