-
-
Save trbngr/6377162238bda85bd8c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TechnologyScraper : ReceiveActor | |
{ | |
private readonly ILoggingAdapter _logger; | |
public TechnologyScraper(ITechnologyService service) | |
{ | |
_logger = Context.GetLogger(); | |
Receive<ScrapeTechnologies>(x => | |
{ | |
_logger.Debug("Starting tech scrape"); | |
service.Scrape(Self); | |
}); | |
Receive<TechnologyScrapeResult>(x => | |
{ | |
_logger.Info("{0:000} active technologies", x.ActiveTechnologies.Length); | |
_logger.Info("{0:000} inactive technologies", x.InactiveTechnologies.Length); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment