예제 #1
0
        /// <summary>
        ///  Handler constrcutor Loaded via DI
        /// </summary>
        public ContentTemplateHandler(
            ILogger <ContentTemplateHandler> logger,
            IEntityService entityService,
            IContentService contentService,
            AppCaches appCaches,
            IShortStringHelper shortStringHelper,
            SyncFileService syncFileService,
            uSyncEventService mutexService,
            uSyncConfigService uSyncConfigService,
            ISyncItemFactory syncItemFactory)
            : base(logger, entityService, appCaches, shortStringHelper, syncFileService, mutexService, uSyncConfigService, syncItemFactory)
        {
            this.contentService = contentService;

            // make sure we load up the template serializer - because we need that one, not the normal content one.
            this.serializer = syncItemFactory.GetSerializer <IContent>("contentTemplateSerializer");
        }
예제 #2
0
        /// <summary>
        /// Constructor, called via DI
        /// </summary>
        public ContentHandler(
            ILogger <ContentHandler> logger,
            IEntityService entityService,
            IContentService contentService,
            AppCaches appCaches,
            IShortStringHelper shortStringHelper,
            SyncFileService syncFileService,
            uSyncEventService mutexService,
            uSyncConfigService uSyncConfigService,
            ISyncItemFactory syncItemFactory)
            : base(logger, entityService, appCaches, shortStringHelper, syncFileService, mutexService, uSyncConfigService, syncItemFactory)
        {
            this.contentService = contentService;

            // make sure we get the default content serializer (not just the first one that loads)
            this.serializer = syncItemFactory.GetSerializer <IContent>("ContentSerializer");
        }