Beispiel #1
0
 /// <summary>
 /// 构造函数注入
 /// </summary>
 /// <param name="readStudentRepository">读库</param>
 /// <param name="writeStudentRepository">写库</param>
 /// <param name="unitOfWork"></param>
 /// <param name="bus"></param>
 /// <param name="cache"></param>
 public StudentCommandHandler(IWriteStudentRepository writeStudentRepository, IReadStudentRepository readStudentRepository, IUnitOfWork unitOfWork, IMediatorHandler bus, IMemoryCache cache) : base(unitOfWork, bus, cache)
 {
     _readStudentRepository  = readStudentRepository;
     _writeStudentRepository = writeStudentRepository;
     _bus   = bus;
     _cache = cache;
 }
Beispiel #2
0
 public StudentAppService(IWriteStudentRepository writeStudentRepository,
                          IReadStudentRepository readStudentRepository,
                          IMapper mapper, IMediatorHandler bus)
 {
     _writeStudentRepository = writeStudentRepository;
     _readStudentRepository  = readStudentRepository;
     _mapper = mapper;
     _bus    = bus;
 }