23 lines
613 B
C#
23 lines
613 B
C#
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
|
|
};
|
|
}
|
|
}
|
|
}
|