Пример #1
0
 public ProjectController(PestControlModel model,
                          PrevalenceEngine engine, SourceControlManager scm, BuildSystemManager bsm)
 {
     _engine = engine;
     _model  = model;
     _scm    = scm;
     _bsm    = bsm;
 }
Пример #2
0
        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);
        }
Пример #4
0
 public HomeController(PestControlModel model)
 {
     _model = model;
 }
Пример #5
0
 public DashboardController(PestControlModel model)
 {
     _model = model;
 }