private void OnReadCompleted() { EventHandler <ReadProgressEventArgs> rp = ReadProgress; if (rp != null) { var e = ReadProgressEventArgs.Completed(ArchiveNameForEvent); rp(this, e); } }
private void OnReadCompleted() { if (ReadProgress != null) { lock (LOCK) { var e = ReadProgressEventArgs.Completed(ArchiveNameForEvent); ReadProgress(this, e); } } }