public FileStreamWrap(string file, int size, IWorkInfo workInfo, string pubId = null) : base(file, FileMode.Create) { this.size = size; this.workInfo = workInfo; this.pubId = pubId; }
public void Start(IWorkInfo workInfo) { this.workInfo = workInfo; thread = new Thread(run); thread.Name = Guid.NewGuid().ToString(); thread.IsBackground = true; thread.Start(); }
public StreamWrap(Stream stream, int size, IWorkInfo workInfo, string pubId = null) { this.stream = stream; this.size = size; this.workInfo = workInfo; this.pubId = pubId; }