public ProjectController(PestControlModel model, PrevalenceEngine engine, SourceControlManager scm, BuildSystemManager bsm) { _engine = engine; _model = model; _scm = scm; _bsm = bsm; }
public void Init() { DefaultConfigurationStore store = new DefaultConfigurationStore(); XmlInterpreter interpreter = new XmlInterpreter(new ConfigResource()); interpreter.ProcessResource(interpreter.Source, store); _container = new PestControlContainer(interpreter); _model = (PestControlModel)_container["pestcontrolModel"]; _engine = (PrevalenceEngine)_container["prevalenceengine"]; }
public void FormsAuthentication_OnAuthenticate(Object sender, FormsAuthenticationEventArgs e) { HttpCookie cookie = e.Context.Request.Cookies[FormsAuthentication.FormsCookieName]; if (cookie == null) { return; } FormsAuthenticationTicket ticket = FormsAuthentication.Decrypt(cookie.Value); PestControlModel model = (PestControlModel)container[typeof(PestControlModel)]; e.User = model.Users.FindByEmail(ticket.Name); }
public HomeController(PestControlModel model) { _model = model; }
public DashboardController(PestControlModel model) { _model = model; }