public static void Inicializar() { var session = new DAL.Session(); Config = new Managers.Config(session); Cache = new Managers.Cache(session, Config); Jira = new Managers.Jira(session, Config); Work = new Managers.Working(session, Config); }
private DAL.Session ToEntity(Session session) { DAL.Session sessionDAL = _salesContext.Sessions.FirstOrDefault(x => x.Name == session.Name); if (sessionDAL != null) { return(sessionDAL); } else { return(DataMapper.Mapping(session)); } }
public Session Mapping(DAL.Session session) { Mapper.Initialize(cfg => cfg.CreateMap <DAL.Session, Session>()); return(Mapper.Map <DAL.Session, Session>(session)); }
public Cache(DAL.Session dal, Config config) : base(dal, config) { }
public Service(DTO.Usuario currentUser) { this.Session = new DAL.Session($"{Factory.FilesPath}YerbaSoft.Web.Games.Config.xml", $"{Factory.FilesPath}YerbaSoft.Web.Games.Chat.xml"); this.CurrentUser = currentUser; }
public ManagerBase(DAL.Session dal, Managers.Config config) { Session = dal; Config = config; JiraInterface = new JiraInterface.Interface(Config.Global.Jira.Url, Config.Global.Jira.User, Config.Global.Jira.Token); }