> I did not understand, though, how I can get some output or feedback from 
> the backup/restore processes. On calling "execute()" the process starts 
> and eventually ends, but I would like to have - at least - a notification 
> when the method has finished it's job.

You need to assign verbose to true, and you also need to add a service output.  
If you do not do both of these, execute() returns back instantly while the 
actual backup/restore is running in another thread.  So you don't know the 
outcome.  I typically define an empty method for the service output.  I then 
wrap the whole thing in a try...catch block to know if I succeeded or not.

void fbBack_ServiceOutput(object sender, ServiceOutputEventArgs e)
{
   // Just here so we have something to call.
}      

---- Snippit of code performing a backup ---
  backupSvc.ServiceOutput += new 
ServiceOutputEventHandler(fbBack_ServiceOutput);
  backupSvc.Verbose = true;
         
  try
  {
     backupSvc.Execute();
     // result is true
  }
  catch (Exception e)
  {
     // result is false
  }

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to