public StuffViewModelListFactory(IStuffItemRepository stuffItemRepository, 
     IProfilerWrapper profilerWrapper,
     IStuffView[] stuffViews)
 {
     _stuffItemRepository = stuffItemRepository;
     _profilerWrapper = profilerWrapper;
     _stuffViews = stuffViews;
 }
 public StuffViewModelFactory(IStuffCategoryRepository stuffCategoryRepository,
     IStuffView[] stuffViews, 
     IProfilerWrapper profilerWrapper)
 {
     _stuffCategoryRepository = stuffCategoryRepository;
     _stuffViews = stuffViews;
     _profilerWrapper = profilerWrapper;
 }
Example #3
0
 public HomeController(ISingleBlogItemViewModelFactory singleBlogItemViewModelFactory,
     IHomepageViewModelFactory homepageViewModel,
     IProfilerWrapper profilerWrapper) : base(profilerWrapper)
 {
     _singleBlogItemViewModelFactory = singleBlogItemViewModelFactory;
     _homepageViewModel = homepageViewModel;
     _profilerWrapper = profilerWrapper;
 }
Example #4
0
 public LibrarianController(IStuffParameterFactory stuffParameterFactory,
     IStuffViewModelListFactory stuffViewModelListFactory,
     IProfilerWrapper profilerWrapper, 
     IStuffItemRepository stuffItemRepository)
 {
     _stuffParameterFactory = stuffParameterFactory;
     _stuffViewModelListFactory = stuffViewModelListFactory;
     _profilerWrapper = profilerWrapper;
     _stuffItemRepository = stuffItemRepository;
 }
 public HomepageViewModelFactory(IProfilerWrapper profilerWrapper,
     IBlogEntryRepository blogEntryRepository,
     ITagCloudViewModelFactory tagCloudViewModelFactory,
     IHomepageTitleFactory homepageTitleFactory)
 {
     _profilerWrapper = profilerWrapper;
     _blogEntryRepository = blogEntryRepository;
     _tagCloudViewModelFactory = tagCloudViewModelFactory;
     _homepageTitleFactory = homepageTitleFactory;
 }
Example #6
0
 public StuffController(IStuffViewModelFactory stuffViewModelFactory,
                        IStuffParameterFactory stuffParameterFactory,
                        IStuffItemRepository stuffItemRepository,
                        IProfilerWrapper profilerWrapper): base(profilerWrapper)
 {
     _stuffViewModelFactory = stuffViewModelFactory;
     _stuffParameterFactory = stuffParameterFactory;
     _stuffItemRepository = stuffItemRepository;
     _profilerWrapper = profilerWrapper;
 }
Example #7
0
        public TegudControllerBase(IProfilerWrapper profilerWrapper)
        {
            using (profilerWrapper.Step("Controller Base Constructor"))
            {
                ViewBag.MinifyJS = false;
                ViewBag.ShowProfiler = false;

                using (profilerWrapper.Step("Set current session user"))
                {
                    var session = TegudData.SiteSession.Session.GetCurrent();
                    ViewBag.User = session.User;
                    ViewBag.IsMobile = Request != null && Request.Browser != null && Request.Browser.IsMobileDevice;

                    if(session.User.IsAdmin)
                    {
                        ViewBag.ShowProfiler = true;
                    }
                }
            }
        }
Example #8
0
 public IdentityRepository(ITegudSqlConnectionFactory connectionFactory, IProfilerWrapper profilerWrapper)
 {
     _profilerWrapper = profilerWrapper;
     _connection = connectionFactory.GetConnection();
 }
 public StuffParameterFactory(IStuffView[] stuffViews, IProfilerWrapper profilerWrapper)
 {
     _profilerWrapper = profilerWrapper;
     _stuffViewIds = stuffViews.Select(s => s.ID);
 }
 public StuffCategoryRepository(ITegudSqlConnectionFactory connectionFactory, IProfilerWrapper profilerWrapper)
 {
     _profilerWrapper = profilerWrapper;
     _connection = connectionFactory.GetConnection();
 }
Example #11
0
 public BlogController(IProfilerWrapper profilerWrapper) : base(profilerWrapper)
 {
 }
Example #12
0
 public LoginController(IProfilerWrapper profilerWrapper)
     : base(profilerWrapper)
 {
     
 }