/// <summary>
        /// Create a new uSyncDashboardApi Controller (via DI)
        /// </summary>
        public uSyncDashboardApiController(
            IConfiguration configuration,
            AppCaches appCaches,
            IWebHostEnvironment hostEnvironment,
            ILocalizedTextService textService,
            ILogger <uSyncDashboardApiController> logger,
            ITypeFinder typeFinder,
            uSyncService uSyncService,
            SyncHandlerFactory syncHandlerFactory,
            IHubContext <SyncHub> hubContext,
            uSyncConfigService uSyncConfig)
        {
            this.appCaches       = appCaches;
            this.hostEnvironment = hostEnvironment;
            this.textService     = textService;
            this.logger          = logger;

            this.typeFinder = typeFinder;

            this.uSyncService   = uSyncService;
            this.handlerFactory = syncHandlerFactory;
            this.hubContext     = hubContext;

            this.uSyncConfig = uSyncConfig;

            _configuration = configuration;
        }
Esempio n. 2
0
        public SyncCommandServiceBase(TextReader reader, TextWriter writer,
                                      uSyncService uSyncService) : base(reader, writer)
        {
            this.uSyncService = uSyncService;
            this.callbacks    = new uSyncCallbacks(Summary, Update);

            AdvancedHelp = "\nOption param [folder]\tPath to the folder to use for operation\n";
        }
Esempio n. 3
0
 /// <inheritdoc/>
 public FirstBootMigration(
     IMigrationContext context,
     IUmbracoContextFactory umbracoContextFactory,
     uSyncConfigService uSyncConfig,
     uSyncService uSyncService,
     ILogger <FirstBootMigration> logger) : base(context)
 {
     _umbracoContextFactory = umbracoContextFactory;
     _uSyncConfig           = uSyncConfig;
     _uSyncService          = uSyncService;
     _logger = logger;
 }
Esempio n. 4
0
        public uSyncDashboardApiController(
            uSyncService uSyncService,
            SyncHandlerFactory handlerFactory,
            uSyncConfig config)
        {
            this.Config       = config;
            this.uSyncService = uSyncService;

            this.settings       = Current.Configs.uSync();
            this.handlerFactory = handlerFactory;

            uSyncConfig.Reloaded += BackOfficeConfig_Reloaded;
        }
        public uSyncDashboardApiController(
            uSyncService uSyncService,
            SyncHandlerCollection syncHandlers,
            uSyncConfig config)
        {
            this.Config       = config;
            this.uSyncService = uSyncService;

            this.settings     = Current.Configs.uSync();
            this.syncHandlers = syncHandlers;

            uSyncConfig.Reloaded += BackOfficeConfig_Reloaded;
        }
Esempio n. 6
0
        /// <summary>
        /// Generate a new uSyncApplicationStartingHandler object
        /// </summary>
        public uSyncApplicationStartingHandler(
            ILogger <uSyncApplicationStartingHandler> logger,
            IRuntimeState runtimeState,
            IServerRoleAccessor serverRegistrar,
            IUmbracoContextFactory umbracoContextFactory,
            uSyncConfigService uSyncConfigService,
            SyncFileService syncFileService,
            uSyncService uSyncService)
        {
            this._runtimeState    = runtimeState;
            this._serverRegistrar = serverRegistrar;

            this._umbracoContextFactory = umbracoContextFactory;

            this._logger = logger;

            this._uSyncConfig = uSyncConfigService;

            this._syncFileService = syncFileService;
            this._uSyncService    = uSyncService;
        }
Esempio n. 7
0
 public ReportCommand(TextReader reader, TextWriter writer,
                      uSyncService uSyncService) : base(reader, writer, uSyncService)
 {
 }