Exemplo n.º 1
0
        protected override void OnObjectDeleted(ObjectEventArgs e)
        {
            try
            {
                if (!_persister.Delete(e.Object))
                {
                    throw new PersisterException();
                }
            }
            catch (PersisterException)
            {
                throw;
            }
            catch (Exception ex)
            {
                throw new PersisterException(ex);
            }

            base.OnObjectDeleted(e);
        }
Exemplo n.º 2
0
        protected override void OnBluePrintCreated(ObjectEventArgs e)
        {
            try
            {
                if (!_persister.Save(e.Object))
                {
                    throw new PersisterException();
                }
            }
            catch (PersisterException)
            {
                throw;
            }
            catch (Exception ex)
            {
                throw new PersisterException(ex);
            }

            base.OnBluePrintCreated(e);
        }