/// <summary> /// Handles the PerformWork event of the _supportQueueDS control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="SD.LLBLGen.Pro.ORMSupportClasses.PerformWorkEventArgs"/> instance containing the event data.</param> protected void _supportQueueDS_PerformWork(object sender, SD.LLBLGen.Pro.ORMSupportClasses.PerformWorkEventArgs e) { SupportQueueManager.PersistSupportQueueUnitOfWork(e.Uow); // invalidate cache CacheManager.InvalidateCachedItem(CacheKeys.AllSupportQueues); }
/// <summary> /// Handles the PerformWork event of the _ipBanDS control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="SD.LLBLGen.Pro.ORMSupportClasses.PerformWorkEventArgs"/> instance containing the event data.</param> protected void _ipBanDS_PerformWork(object sender, SD.LLBLGen.Pro.ORMSupportClasses.PerformWorkEventArgs e) { // the event args contain the UnitOfWork to persist. Pass it on to the BL method SecurityManager.PersistIPBanUnitOfWork(e.Uow); // invalidate cache CacheManager.InvalidateCachedItem(CacheKeys.AllIPBans); }