Пример #1
0
        public uSyncBackofficeComponent(
            SyncHandlerCollection syncHandlers,
            IProfilingLogger logger,
            SyncFileService fileService,
            uSyncService uSyncService,
            IRuntimeState runtimeState)
        {
            globalSettings = Current.Configs.uSync();

            this.runtimeState = runtimeState;
            this.syncHandlers = syncHandlers;
            this.logger       = logger;

            this.syncFileService = fileService;
            this.uSyncService    = uSyncService;
        }
        public uSyncBackofficeComponent(
            SyncHandlerFactory handlerFactory,
            IProfilingLogger logger,
            SyncFileService fileService,
            uSyncService uSyncService,
            IRuntimeState runtimeState,
            IUmbracoContextFactory umbracoContextFactory)
        {
            globalSettings = Current.Configs.uSync();

            this.runtimeState = runtimeState;
            this.logger       = logger;

            this.handlerFactory = handlerFactory;

            this.syncFileService = fileService;
            this.uSyncService    = uSyncService;

            this.umbracoContextFactory = umbracoContextFactory;
        }
Пример #3
0
        public uSyncBackofficeComponent(
            IGlobalSettings globalSettings,
            uSyncConfig uSyncConfig,
            SyncHandlerFactory handlerFactory,
            IProfilingLogger logger,
            SyncFileService fileService,
            uSyncService uSyncService,
            IRuntimeState runtimeState,
            IUmbracoContextFactory umbracoContextFactory)
        {
            uSyncSettings = uSyncConfig.Settings;

            UmbracoMvcArea = globalSettings.GetUmbracoMvcArea();

            this.runtimeState = runtimeState;
            this.logger       = logger;

            this.handlerFactory = handlerFactory;

            this.syncFileService = fileService;
            this.uSyncService    = uSyncService;

            this.umbracoContextFactory = umbracoContextFactory;
        }