Ejemplo n.º 1
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            RouteTable.Routes.MapHubs();

            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            var mailRepository = new MailRepository(new Pop3Client());
            MailFetcherFactory.Current = new MailFetcher(mailRepository);
            MailFetcherFactory.Current.StartAsyncFetching();
            MailsHubEventListener.Current.Init();
        }
Ejemplo n.º 2
0
 public MailFetcher(MailRepository mailRepository)
 {
     _mailRepository = mailRepository;
 }