Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ImageCleanupTask" /> class.
 /// </summary>
 /// <param name="kernel">The kernel.</param>
 /// <param name="logger">The logger.</param>
 /// <param name="libraryManager">The library manager.</param>
 /// <param name="appPaths">The app paths.</param>
 public ImageCleanupTask(Kernel kernel, ILogger logger, ILibraryManager libraryManager, IServerApplicationPaths appPaths, IItemRepository itemRepo)
 {
     _kernel = kernel;
     _logger = logger;
     _libraryManager = libraryManager;
     _appPaths = appPaths;
     _itemRepo = itemRepo;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CurrentTrailerDownloadTask" /> class.
 /// </summary>
 /// <param name="kernel">The kernel.</param>
 /// <param name="libraryManager">The library manager.</param>
 /// <param name="providerManager">The provider manager.</param>
 /// <param name="httpClient">The HTTP client.</param>
 /// <param name="jsonSerializer">The json serializer.</param>
 /// <param name="logger">The logger.</param>
 public CurrentTrailerDownloadTask(Kernel kernel, ILibraryManager libraryManager, IProviderManager providerManager, IHttpClient httpClient, IJsonSerializer jsonSerializer, ILogger logger)
 {
     _jsonSerializer = jsonSerializer;
     _httpClient = httpClient;
     Logger = logger;
     Kernel = kernel;
     LibraryManager = libraryManager;
     ProviderManager = providerManager;
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ChapterImagesTask" /> class.
        /// </summary>
        /// <param name="kernel">The kernel.</param>
        /// <param name="logManager">The log manager.</param>
        /// <param name="libraryManager">The library manager.</param>
        /// <param name="itemRepo">The item repo.</param>
        public ChapterImagesTask(Kernel kernel, ILogManager logManager, ILibraryManager libraryManager, IItemRepository itemRepo)
        {
            _kernel = kernel;
            _logger = logManager.GetLogger(GetType().Name);
            _libraryManager = libraryManager;
            _itemRepo = itemRepo;

            libraryManager.ItemAdded += libraryManager_ItemAdded;
            libraryManager.ItemUpdated += libraryManager_ItemAdded;
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ChapterImagesTask" /> class.
        /// </summary>
        /// <param name="kernel">The kernel.</param>
        /// <param name="logManager">The log manager.</param>
        /// <param name="libraryManager">The library manager.</param>
        /// <param name="jsonSerializer">The json serializer.</param>
        public ChapterImagesTask(Kernel kernel, ILogManager logManager, ILibraryManager libraryManager, IJsonSerializer jsonSerializer)
        {
            _kernel = kernel;
            _logger = logManager.GetLogger(GetType().Name);
            _libraryManager = libraryManager;
            _jsonSerializer = jsonSerializer;

            libraryManager.ItemAdded += libraryManager_ItemAdded;
            libraryManager.ItemUpdated += libraryManager_ItemAdded;
        }
        public ServerEntryPoint(ILogManager logManager, IUserManager userManager, ILibraryManager libraryManager, Kernel kernel, ISessionManager sessionManager)
        {
            SessionManager = sessionManager;
            Logger = logManager.GetLogger("DlnaServerPlugin");

            UserManager = userManager;
            LibraryManager = libraryManager;
            Kernel = kernel;

            Instance = this;
        }