private void handle(FoodSearchRequestMessage message) { var key = Tuple.Create(nameof(FoodNameSearchActor), message.SearchUri.Host.ToLowerInvariant()); var child = getChildActor(key, () => new FoodNameSearchActor()); child.Tell(message); }
public FoodSearchResultMessage(FoodSearchRequestMessage request, String htmlResult) { if (request == null) { throw new ArgumentNullException(nameof(request)); } if (htmlResult == null) { throw new ArgumentNullException(nameof(htmlResult)); } Request = request; HtmlResult = htmlResult; }