Ejemplo n.º 1
0
 public StuffViewModelListFactory(IStuffItemRepository stuffItemRepository, 
     IProfilerWrapper profilerWrapper,
     IStuffView[] stuffViews)
 {
     _stuffItemRepository = stuffItemRepository;
     _profilerWrapper = profilerWrapper;
     _stuffViews = stuffViews;
 }
Ejemplo n.º 2
0
 public StuffViewModelFactory(IStuffCategoryRepository stuffCategoryRepository,
     IStuffView[] stuffViews, 
     IProfilerWrapper profilerWrapper)
 {
     _stuffCategoryRepository = stuffCategoryRepository;
     _stuffViews = stuffViews;
     _profilerWrapper = profilerWrapper;
 }
Ejemplo n.º 3
0
 public HomeController(ISingleBlogItemViewModelFactory singleBlogItemViewModelFactory,
     IHomepageViewModelFactory homepageViewModel,
     IProfilerWrapper profilerWrapper) : base(profilerWrapper)
 {
     _singleBlogItemViewModelFactory = singleBlogItemViewModelFactory;
     _homepageViewModel = homepageViewModel;
     _profilerWrapper = profilerWrapper;
 }
Ejemplo n.º 4
0
 public LibrarianController(IStuffParameterFactory stuffParameterFactory,
     IStuffViewModelListFactory stuffViewModelListFactory,
     IProfilerWrapper profilerWrapper, 
     IStuffItemRepository stuffItemRepository)
 {
     _stuffParameterFactory = stuffParameterFactory;
     _stuffViewModelListFactory = stuffViewModelListFactory;
     _profilerWrapper = profilerWrapper;
     _stuffItemRepository = stuffItemRepository;
 }
Ejemplo n.º 5
0
 public HomepageViewModelFactory(IProfilerWrapper profilerWrapper,
     IBlogEntryRepository blogEntryRepository,
     ITagCloudViewModelFactory tagCloudViewModelFactory,
     IHomepageTitleFactory homepageTitleFactory)
 {
     _profilerWrapper = profilerWrapper;
     _blogEntryRepository = blogEntryRepository;
     _tagCloudViewModelFactory = tagCloudViewModelFactory;
     _homepageTitleFactory = homepageTitleFactory;
 }
Ejemplo n.º 6
0
 public StuffController(IStuffViewModelFactory stuffViewModelFactory,
                        IStuffParameterFactory stuffParameterFactory,
                        IStuffItemRepository stuffItemRepository,
                        IProfilerWrapper profilerWrapper): base(profilerWrapper)
 {
     _stuffViewModelFactory = stuffViewModelFactory;
     _stuffParameterFactory = stuffParameterFactory;
     _stuffItemRepository = stuffItemRepository;
     _profilerWrapper = profilerWrapper;
 }
Ejemplo n.º 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;
                    }
                }
            }
        }
Ejemplo n.º 8
0
 public IdentityRepository(ITegudSqlConnectionFactory connectionFactory, IProfilerWrapper profilerWrapper)
 {
     _profilerWrapper = profilerWrapper;
     _connection = connectionFactory.GetConnection();
 }
Ejemplo n.º 9
0
 public StuffParameterFactory(IStuffView[] stuffViews, IProfilerWrapper profilerWrapper)
 {
     _profilerWrapper = profilerWrapper;
     _stuffViewIds = stuffViews.Select(s => s.ID);
 }
Ejemplo n.º 10
0
 public StuffCategoryRepository(ITegudSqlConnectionFactory connectionFactory, IProfilerWrapper profilerWrapper)
 {
     _profilerWrapper = profilerWrapper;
     _connection = connectionFactory.GetConnection();
 }
Ejemplo n.º 11
0
 public BlogController(IProfilerWrapper profilerWrapper) : base(profilerWrapper)
 {
 }
Ejemplo n.º 12
0
 public LoginController(IProfilerWrapper profilerWrapper)
     : base(profilerWrapper)
 {
     
 }