public FileNamesSearchExecutor(GetFileNamesQuery query, IResponseSender responseSender) { _query = query; _responseSender = responseSender; Id = Guid.NewGuid(); _searchResult = new StringBuilder(); }
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; }