예제 #1
0
 public FileStreamWrap(string file, int size, IWorkInfo workInfo, string pubId = null)
     : base(file, FileMode.Create)
 {
     this.size = size;
     this.workInfo = workInfo;
     this.pubId = pubId;
 }
예제 #2
0
        public void Start(IWorkInfo workInfo)
        {
            this.workInfo = workInfo;

            thread = new Thread(run);
            thread.Name = Guid.NewGuid().ToString();
            thread.IsBackground = true;
            thread.Start();
        }
예제 #3
0
 public StreamWrap(Stream stream, int size, IWorkInfo workInfo, string pubId = null)
 {
     this.stream = stream;
     this.size = size;
     this.workInfo = workInfo;
     this.pubId = pubId;
 }