/// <summary>
        /// Broadcasts OnDatabaseError events, takes a <c>DatabaseEventArgs</c> as argument.
        /// </summary>
        /// <param name="e"></param>
        private void OnDatabaseErrorRaised(DatabaseEventArgs e)
        {
            DatabaseErrorHandler handler = OnDatabaseError;

            if (handler != null)  //make sure that there are subscribers to the event
            {
                handler(this, e);
            }
        }
Exemplo n.º 2
0
 public TicketController(ApplicationContext context, DatabaseErrorHandler databaseErrorHandler)
 {
     _context = context;
     _databaseErrorHandler = databaseErrorHandler;
 }
 public PerformanceController(ApplicationContext context, DatabaseErrorHandler databaseErrorHandler)
 {
     _context = context;
     _databaseErrorHandler = databaseErrorHandler;
 }
Exemplo n.º 4
0
 public OrderController(ApplicationContext context, DatabaseErrorHandler databaseErrorHandler, EncryptionHelper encryptionHelper)
 {
     _context = context;
     _databaseErrorHandler = databaseErrorHandler;
     _encryptionHelper     = encryptionHelper;
 }