Exemplo n.º 1
0
 public UrlShortenerService(
     IUrlShortenerOperationalStore urlShortenerOperationalStore,
     IExpiredUrlShortenerOperationalStore expiredUrlShortenerOperationalStore)
 {
     _urlShortenerOperationalStore        = urlShortenerOperationalStore;
     _expiredUrlShortenerOperationalStore = expiredUrlShortenerOperationalStore;
     _eventSource = new EventSource <ShortenerEventArgs>();
 }
 public UrlShortenerService(
     IUrlShortenerOperationalStore urlShortenerOperationalStore,
     IExpiredUrlShortenerOperationalStore expiredUrlShortenerOperationalStore,
     ILogger <UrlShortenerService> logger)
 {
     _urlShortenerOperationalStore        = urlShortenerOperationalStore;
     _expiredUrlShortenerOperationalStore = expiredUrlShortenerOperationalStore;
     _eventSource = new EventSource <ShortenerEventArgs>();
     _logger      = logger;
 }