예제 #1
0
 public NStackAppService(INStackRepository repository, INStackLocalizeService localizeService, IMemoryCache memoryCache, int?howOftenToCheckInMinutes = null)
 {
     _repository               = repository ?? throw new ArgumentNullException(nameof(repository));
     _localizeService          = localizeService ?? throw new ArgumentNullException(nameof(localizeService));
     _memoryCache              = memoryCache ?? throw new ArgumentNullException(nameof(memoryCache));
     _howOftenToCheckInMinutes = howOftenToCheckInMinutes ?? 5;
 }
예제 #2
0
 public NStackLocalizeService(INStackRepository repository)
 {
     _repository = repository ?? throw new ArgumentNullException(nameof(repository));
 }