示例#1
0
        private void handle(FoodSearchRequestMessage message)
        {
            var key   = Tuple.Create(nameof(FoodNameSearchActor), message.SearchUri.Host.ToLowerInvariant());
            var child = getChildActor(key, () => new FoodNameSearchActor());

            child.Tell(message);
        }
示例#2
0
 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;
 }
 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;
 }