Ejemplo n.º 1
0
 public ContentController(
     IContentManager contentManager,
     IContentDisplay contentDisplay,
     ISession session)
 {
     _contentManager = contentManager;
     _contentDisplay = contentDisplay;
     _session = session;
 }
Ejemplo n.º 2
0
 public ContentController(
     IContentManager contentManager,
     IContentDisplay contentDisplay,
     ISession session)
 {
     _contentManager = contentManager;
     _contentDisplay = contentDisplay;
     _session        = session;
 }
 public ShapeController(
     IAuthorizer authorizer,
     IOrchardServices orchardServices,
     IInlineContentDisplay inlineContentDisplay,
     IContentDisplay contentDisplay)
 {
     _authorizer           = authorizer;
     _orchardServices      = orchardServices;
     _contentManager       = _orchardServices.ContentManager;
     _inlineContentDisplay = inlineContentDisplay;
     _contentDisplay       = contentDisplay;
     Logger = NullLogger.Instance;
 }
Ejemplo n.º 4
0
 public HomeController(
     ITestDependency testDependency,
     IContentManager contentManager,
     IEventBus eventBus,
     IShapeFactory shapeFactory,
     IShapeDisplay shapeDisplay,
     ISession session,
     ILogger <HomeController> logger,
     ITagCache tagCache,
     IContentDisplay contentDisplay)
 {
     _session        = session;
     _testDependency = testDependency;
     _contentManager = contentManager;
     _eventBus       = eventBus;
     _shapeDisplay   = shapeDisplay;
     Shape           = shapeFactory;
     _logger         = logger;
     _tagCache       = tagCache;
     _contentDisplay = contentDisplay;
 }
        public InlineContentDisplay(
            IShapeFactory shapeFactory,
            Lazy<IShapeTableLocator> shapeTableLocator,
            IEnumerable<IContentPartDriver> partDrivers,
            IEnumerable<IContentFieldDriver> fieldDrivers,
            IContentDisplay contentDisplay,
            RequestContext requestContext,
            IWorkContextAccessor workContextAccessor,
            IEnumerable<IInlineContentHandler> handlers) {
            _shapeFactory = shapeFactory;
            _shapeTableLocator = shapeTableLocator;
            _partDrivers = partDrivers;
            _fieldDrivers = fieldDrivers;
            _contentDisplay = contentDisplay;
            _requestContext = requestContext;
            _workContextAccessor = workContextAccessor;
            _handlers = handlers;

            Logger = NullLogger.Instance;
            Shape = shapeFactory;
        }
Ejemplo n.º 6
0
 public HomeController(
     ITestDependency testDependency,
     IContentManager contentManager,
     IEventBus eventBus,
     IShapeFactory shapeFactory,
     IShapeDisplay shapeDisplay,
     ISession session,
     ILogger<HomeController> logger,
     ITagCache tagCache,
     IContentDisplay contentDisplay)
 {
     _session = session;
     _testDependency = testDependency;
     _contentManager = contentManager;
     _eventBus = eventBus;
     _shapeDisplay = shapeDisplay;
     Shape = shapeFactory;
     _logger = logger;
     _tagCache = tagCache;
     _contentDisplay = contentDisplay;
 }
Ejemplo n.º 7
0
        public InlineContentDisplay(
            IShapeFactory shapeFactory,
            Lazy <IShapeTableLocator> shapeTableLocator,
            IEnumerable <IContentPartDriver> partDrivers,
            IEnumerable <IContentFieldDriver> fieldDrivers,
            IContentDisplay contentDisplay,
            RequestContext requestContext,
            IWorkContextAccessor workContextAccessor,
            IEnumerable <IInlineContentHandler> handlers)
        {
            _shapeFactory        = shapeFactory;
            _shapeTableLocator   = shapeTableLocator;
            _partDrivers         = partDrivers;
            _fieldDrivers        = fieldDrivers;
            _contentDisplay      = contentDisplay;
            _requestContext      = requestContext;
            _workContextAccessor = workContextAccessor;
            _handlers            = handlers;

            Logger = NullLogger.Instance;
            Shape  = shapeFactory;
        }