コード例 #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;
 }
コード例 #3
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;
 }