/// <summary> /// Called whenever an enumerating provider spools a batch file to the disk /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void provider_BatchSpooled(object sender, DbBatchSpooledEventArgs e) { Console.WriteLine("BatchSpooled event fired: Details"); Console.WriteLine("\tConnection string :" + ((RelationalSyncProvider)sender).Connection.ConnectionString); Console.WriteLine("\tBatch Name :" + e.BatchFileName); Console.WriteLine("\tBatch Size :" + e.DataCacheSize); Console.WriteLine("\tBatch Number :" + e.CurrentBatchNumber); Console.WriteLine("\tTotal Batches :" + e.TotalBatchesSpooled); Console.WriteLine("\tBatch Watermark :" + ReadTableWatermarks(e.CurrentBatchTableWatermarks)); }
/// <summary> /// Called whenever an enumerating provider spools a batch file to the disk /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void provider_BatchSpooled(object sender, DbBatchSpooledEventArgs e) { this.progressForm.listSyncProgress.Items.Add("BatchSpooled event fired: Details"); this.progressForm.listSyncProgress.Items.Add("\tSource Database :" + ((RelationalSyncProvider)sender).Connection.Database); this.progressForm.listSyncProgress.Items.Add("\tBatch Name :" + e.BatchFileName); this.progressForm.listSyncProgress.Items.Add("\tBatch Size :" + e.DataCacheSize); this.progressForm.listSyncProgress.Items.Add("\tBatch Number :" + e.CurrentBatchNumber); this.progressForm.listSyncProgress.Items.Add("\tTotal Batches :" + e.TotalBatchesSpooled); this.progressForm.listSyncProgress.Items.Add("\tBatch Watermark :" + ReadTableWatermarks(e.CurrentBatchTableWatermarks)); }
protected void Proveedor_BatchSpooled(object sender, DbBatchSpooledEventArgs e) { String mensaje = string.Format( "{0}:{1}\n\r{2}:{3}\n\r{4}:{5}\n\r{6}:{7}\n\r{8}:{9}\n\r{10}:{11}\n\r", "\tSource Database :", ((RelationalSyncProvider)sender).Connection.Database, "\tBatch Name :", e.BatchFileName, "\tBatch Size :", e.DataCacheSize, "\tBatch Number :", e.CurrentBatchNumber, "\tTotal Batches :", e.TotalBatchesSpooled, "\tBatch Watermark :", ReadTableWatermarks(e.CurrentBatchTableWatermarks)); Loguear("Proveedor_BatchSpooled", mensaje); }
protected abstract void SyncProviderOnBatchSpooled(object sender, DbBatchSpooledEventArgs dbBatchSpooledEventArgs);
protected void Proveedor_BatchSpooled(object sender, DbBatchSpooledEventArgs e) { String mensaje = string.Format( "{0}:{1}\n\r{2}:{3}\n\r{4}:{5}\n\r{6}:{7}\n\r{8}:{9}\n\r{10}:{11}\n\r", "\tSource Database :", ((RelationalSyncProvider)sender).Connection.Database, "\tBatch Name :", e.BatchFileName, "\tBatch Size :", e.DataCacheSize, "\tBatch Number :", e.CurrentBatchNumber, "\tTotal Batches :", e.TotalBatchesSpooled, "\tBatch Watermark :", this.ReadTableWatermarks(e.CurrentBatchTableWatermarks)); this.loguear("Proveedor_BatchSpooled",mensaje); }
/// <summary> /// Called whenever an enumerating provider spools a batch file to the disk /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void provider_BatchSpooled(object sender, DbBatchSpooledEventArgs e) { }
protected override void SyncProviderOnBatchSpooled(object sender, DbBatchSpooledEventArgs dbBatchSpooledEventArgs) { ShowMessage("Local"); }