Differences
This shows you the differences between the selected revisions of the page.
| 2013-05-23 | 2013-05-28 | ||
| IsNot Nothing (martin) | using Register-ObjectEvent is more powershell-like (martin) | ||
| Line 297: | Line 297: | ||
| { | { | ||
| # Will continuously report progress of synchronization | # Will continuously report progress of synchronization | ||
| - | $session.add_FileTransferred( { FileTransferred($_) } ) | + | Register-ObjectEvent -inputObject $session -eventName FileTransferred ` |
| + | ············-Action { FileTransferred($event.sourceEventArgs) } | Out-Null | ||
| # Connect | # Connect | ||