public static void Start() { _founderAgent = new FounderAgent(); _founderAgent.Compose(catalogs); ApplicationStartContext AppContext = new ApplicationStartContext(); foreach (Lazy <IContractFounder, IContractMetadata> lazyFounder in _founderAgent.ContractFounders) { try { lazyFounder.Value.PluginContract(MEFPool); } catch { } try { lazyFounder.Value.PluginManyContract(MEFManyPool); } catch { } } foreach (Lazy <IApplicationStart, IContractMetadata> lazyStarter in _founderAgent._appStarts.OrderBy(m => m.Value.ContractVersion)) { try { lazyStarter.Value.PreStart(AppContext); } catch { } } foreach (Lazy <IApplicationStart, IContractMetadata> lazyStarter in _founderAgent._appStarts.OrderBy(m => m.Value.ContractVersion)) { try { lazyStarter.Value.Start(AppContext); } catch { } } }
public int Save(FounderDto founder, IEnumerable <FounderRoleDto> roles) { using (var agent = new FounderAgent()) return(agent.Save(founder, roles)); }
public IEnumerable <FounderWithQuoteCountDto> GetWithQuoteCountById(int id) { using (var agent = new FounderAgent()) return(agent.GetWithQuoteCountById(id)); }
public IEnumerable <FounderWithQuoteCountDto> GetWithQuoteCountByName(string searchText) { using (var agent = new FounderAgent()) return(agent.GetWithQuoteCountByName(searchText, searchText)); }
public IEnumerable <FounderWithQuoteCountDto> GetAllWithQuoteCount() { using (var agent = new FounderAgent()) return(agent.GetWithQuoteCountByName("", "")); }
public IEnumerable <FounderDto> GetAll() { using (var agent = new FounderAgent()) return(agent.GetAll()); }
public FounderDto GetById(int id) { using (var agent = new FounderAgent()) return(agent.GetById(id)); }
public IEnumerable <FounderWithQuoteCountDto> GetWithQuoteCountByName(string firstName, string lastName) { using (var agent = new FounderAgent()) return(agent.GetWithQuoteCountByName(firstName, lastName)); }
public PartialViewResult Listing(string id) { List <FounderWithQuoteCountDto> model = new FounderAgent().GetWithQuoteCountByName(id, null).ToList(); return(PartialView(model)); }