Exemplo n.º 1
0
        private static void DoAlbum(RequestSearch requestSearch, Socket asker)
        {
            var result = Indexation.GetAlbums(x => Search.Find(requestSearch.Name, x.Name));

            foreach (var a in result)
            {
                MyServer.Log.Info($"  {a.Name}");
            }

            (new RequestAnswer(result.Cast <IElement>().ToList(), ElementType.Album, requestSearch.Name)).Send(asker);
        }