示例#1
0
        private static ITaskExecutor ToDownloadFileExecutor(DownloadFileRequest request)
        {
            if (ConnectionsStorage.Instanse.Contains(request.SessionId))
            {
                var query = new DownloadFileQuery(request.ResponseEndPoint)
                {
                    Id = request.Id,
                    FileFullName = request.FileFullName
                };

                return new DownloadFileExecutor(query);
            }

            return null;
        }
 public DownloadFileExecutor(DownloadFileQuery query)
 {
     _query = query;
     Id = Guid.NewGuid();
 }