From: André K. <Kna...@be...> - 2013-03-22 13:22:51
|
You can subscribe a method to the "ServiceOutput" event. I have usually switched it off, because means a performance penalty, but for debugging I usually turn it on. Here is a small example which should put you into the right direction. All you need to do is to write "e.Message" from the ServiceOutputEventArgs e into a RichTextBox or similar. FbBackup works the same as FbRestore in that aspect. internal delegate void OnRestoreResultEventHandler(object sender, ServiceOutputEventArgs e); internal static event OnRestoreResultEventHandler OnRestoreResult; FbRestore _Restore = new FirebirdSql.Data.Services.FbRestore(); _Restore.ServiceOutput += new ServiceOutputEventHandler(_Restore_ServiceOutput); ... ... ... private static void _Restore_ServiceOutput(object sender, ServiceOutputEventArgs e) { if (OnRestoreResult != null) OnRestoreResult(_Restore, e); } > Hello everyone > I have a question, when using the fbbackup on .net have a way to > know if the backup was completely sucesfull??? > And wirh fbreatore?? > Enviado pelo meu Windows Phone mit freundlichen Grüßen, André Knappstein EDV und Controlling ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ beta Eigenheim- und Grundstücksverwertungsgesellschaft mbH Hafenweg 4 59192 Bergkamen-Rünthe Telefon: +49 2389 9240 140 Telefax: +49 2389 9240 150 e-mail: kna...@be... Amtsgericht Hamm Nr. B 420 Geschäftsführer: Achim Krähling, Dirk Salewski und Matthias Steinhaus USt-IDNr.: DE 125215402 |