public void OnActionExecuted(ActionExecutedContext context)
 {
     if (context.Exception == null)
     {
         _databaseManager.Commit();
         _rethinkDbDelegateBus.Commit();
     }
 }
示例#2
0
        public void Seed()
        {
            var seeders = _seeders.ToList();

            seeders.Sort();

            foreach (var seeder in seeders)
            {
                seeder.Seed();
                _databaseManager.Commit();
                _rethinkDbDelegateBus.Commit();
            }
        }