public void Initialization()
        {
            _repository = new LocksRepository(_configuration);

            SqlMapper.AddTypeHandler(new DateTimeHandler());
            SqlMapper.AddTypeHandler(new GuidHandler());
        }
示例#2
0
 public LocksService(ILocksRepository locksRepository, IEventPublisher eventPublisher)
 {
     _locksRepository = locksRepository;
     _eventPublisher  = eventPublisher;
 }