public Task(UploadHandlerBase handler, UploadItemBase uploadItem) { if (handler == null) { throw new ArgumentNullException("handler"); } if (handler == null) { throw new ArgumentNullException("uploadItem"); } _handler = handler; _uploadItem = uploadItem; _uploadItem.UploadCompleted += _uploadItem_UploadCompleted; }
public ITask CreateTask(UploadHandlerBase handler, UploadItemBase uploadItem) { return new Task(handler, uploadItem); }