示例#1
0
 public DefaultContentManager(
     IContentDefinitionManager contentDefinitionManager,
     IEnumerable <IContentHandler> handlers,
     ISession session,
     IContentItemIdGenerator idGenerator,
     ILogger <DefaultContentManager> logger)
 {
     _contentDefinitionManager = contentDefinitionManager;
     Handlers               = handlers;
     _session               = session;
     _idGenerator           = idGenerator;
     _contentManagerSession = new DefaultContentManagerSession();
     _logger = logger;
 }
 public DefaultContentManager(
     IContentDefinitionManager contentDefinitionManager,
     IEnumerable <IContentHandler> handlers,
     ISession session,
     IContentItemIdGenerator idGenerator,
     ILogger <DefaultContentManager> logger,
     IClock clock)
 {
     _contentDefinitionManager = contentDefinitionManager;
     Handlers               = handlers;
     ReversedHandlers       = handlers.Reverse().ToArray();
     _session               = session;
     _idGenerator           = idGenerator;
     _contentManagerSession = new DefaultContentManagerSession();
     _logger = logger;
     _clock  = clock;
 }