public FileNamesSearchExecutor(GetFileNamesQuery query, IResponseSender responseSender)
 {
     _query = query;
     _responseSender = responseSender;
     Id = Guid.NewGuid();
     _searchResult = new StringBuilder();
 }
예제 #2
0
        private static ITaskExecutor ToFileNamesSearchExecutor(GetFileNamesRequest request)
        {
            if (ConnectionsStorage.Instanse.Contains(request.SessionId))
            {
                var query = new GetFileNamesQuery(request.ResponseEndPoint)
                            {
                                Id = request.Id,
                                NameSubstring = request.NameSubstring,
                                VolumeName = request.VolumeName,
                            };

                return new FileNamesSearchExecutor(query, new XMLSerializedResponseSender());
            }

            return null;
        }