-
Notifications
You must be signed in to change notification settings - Fork 813
Dependency Injection
LukePulverenti edited this page Mar 7, 2013
·
17 revisions
While you're building your classes for automatic discovery, many of these classes will require access to the core's internal services.
All you have to do is declare your a class's dependencies within it's constructor and we'll resolve them and pass in the appropriate instance.
The following services are available for insertion into your constructors:
- ILogManager - create your own named logger
- IServerApplicationPaths - contains a list of various application data paths
- IServerConfigurationManager - holds server configuration (and the above app paths)
- IIsoManager - mounts and unmounts .iso files
- ITaskManager - manages scheduled tasks
- ILibraryManager - get information about the media library, without respect to user
- IUserManager - get information about each user as well as their customized media libraries
- IBlurayExaminer - get information about bluray folder structures
- IJsonSerializer
- IXmlSerializer
- IProtobufSerializer
Emby Home | Latest News | Emby Downloads | Emby Community Forums | © 2019 Emby LLC
- Locating the Server
- Emby Connect
- Browsing the Library
- Latest Items
- Item Information
- Item Types
- Images
- Items by Name
- Web Socket
- Remote Control
- Live TV
- Playlists
- Parental Control
- Filtering
- Sync
- Playback Guidelines
- Audio Streaming
- Video Streaming
- HTTP Live Streaming (HLS)
- Subtitles
- Playback Check-ins