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); }
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); } }
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)); }
public ContractsBLL(IContractsDataAccess contract, IExceptions exceptions) { contractsData = contract; ExceptionDA = exceptions; }
public Callbacks(IExceptions exceptions) => _exceptions = exceptions;
public ExceptionLogBLL(IExceptions exceptions) { ExceptionDA = exceptions; }
public ExceptionAwareCallback(Type owner, IExceptions exceptions, Func <Task> callback) { _owner = owner; _exceptions = exceptions; _callback = callback; }
public UsersBLL(IUsersDataAcesss user, IExceptions exe) { usersDA = user; ExceptionDA = exe; }
public GameBLL(IGameDataAccess game, IExceptions exceptions) { gameDataAccess = game; ExceptionDA = exceptions; }