/// <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; }
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 uSyncService( SyncHandlerFactory handlerFactory, IProfilingLogger logger, SyncFileService syncFileService) { this.handlerFactory = handlerFactory; this.syncFileService = syncFileService; this.settings = Current.Configs.uSync(); this.logger = logger; uSyncConfig.Reloaded += BackOfficeConfig_Reloaded; uSyncTriggers.DoExport += USyncTriggers_DoExport; uSyncTriggers.DoImport += USyncTriggers_DoImport; }
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; }
/// <summary> /// Create a new uSyncService (done via DI) /// </summary> public uSyncService( ILogger <uSyncService> logger, IEventAggregator eventAggregator, uSyncConfigService uSyncConfigService, SyncHandlerFactory handlerFactory, SyncFileService syncFileService, uSyncEventService mutexService, AppCaches appCaches) { this._logger = logger; this._eventAggregator = eventAggregator; this._uSyncConfig = uSyncConfigService; this._handlerFactory = handlerFactory; this._syncFileService = syncFileService; this._mutexService = mutexService; this._appCache = appCaches.RuntimeCache; uSyncTriggers.DoExport += USyncTriggers_DoExport; uSyncTriggers.DoImport += USyncTriggers_DoImport; }
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; }