Пример #1
0
 public static IExceptions GetFactory()
 {
     if (factory == null)
     {
         Type type = Type.GetType("Common." + SystemDefaultConfig.DatabaseProvider + "Repository.ExceptionsDAL,Common." + SystemDefaultConfig.DatabaseProvider + "Repository", true);
         factory = (IExceptions)Activator.CreateInstance(type);
     }
     return(factory);
 }
Пример #2
0
 public static void AddExceptions(Exceptions item)
 {
     try
     {
         item.Track       = SubString(item.Track, 2000);
         item.Source      = SubString(item.Source, 100);
         item.Description = SubString(item.Description, 400);
         item.Detail      = SubString(item.Detail, 1000);
         item.DateTime    = DateTime.Now;
         IExceptions factory = ExceptionsFactory.GetFactory();
         factory.AddExceptions(item);
     }
     catch (Exception ex)
     {
         TxtLogServices.WriteTxtLogEx("AddExceptionsLogError", ex);
     }
 }
Пример #3
0
        public static List <Exceptions> LoadExceptions(ExceptionCondition condition, int pageIndex, int pageSize, out int recordTotalCount)
        {
            IExceptions factory = ExceptionsFactory.GetFactory();

            return(factory.LoadExceptions(condition, pageIndex, pageSize, out recordTotalCount));
        }
Пример #4
0
 public ContractsBLL(IContractsDataAccess contract, IExceptions exceptions)
 {
     contractsData = contract;
     ExceptionDA   = exceptions;
 }
Пример #5
0
 public Callbacks(IExceptions exceptions) => _exceptions = exceptions;
Пример #6
0
 public ExceptionLogBLL(IExceptions exceptions)
 {
     ExceptionDA = exceptions;
 }
 public ExceptionAwareCallback(Type owner, IExceptions exceptions, Func <Task> callback)
 {
     _owner      = owner;
     _exceptions = exceptions;
     _callback   = callback;
 }
Пример #8
0
 public UsersBLL(IUsersDataAcesss user, IExceptions exe)
 {
     usersDA     = user;
     ExceptionDA = exe;
 }
Пример #9
0
 public GameBLL(IGameDataAccess game, IExceptions exceptions)
 {
     gameDataAccess = game;
     ExceptionDA    = exceptions;
 }