mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 22:43:07 +03:00
isolated bdinfo dependancy
This commit is contained in:
@@ -483,8 +483,7 @@ namespace MediaBrowser.Common.Kernel
|
||||
|
||||
CompositionContainer = MefUtils.GetSafeCompositionContainer(Assemblies.Select(i => new AssemblyCatalog(i)));
|
||||
|
||||
CompositionContainer.ComposeExportedValue("kernel", this);
|
||||
CompositionContainer.ComposeExportedValue("logger", Logging.LogManager.GetLogger("App"));
|
||||
ComposeExportedValues(CompositionContainer);
|
||||
|
||||
CompositionContainer.ComposeParts(this);
|
||||
|
||||
@@ -493,6 +492,15 @@ namespace MediaBrowser.Common.Kernel
|
||||
CompositionContainer.Catalog.Dispose();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Composes the exported values.
|
||||
/// </summary>
|
||||
/// <param name="container">The container.</param>
|
||||
protected virtual void ComposeExportedValues(CompositionContainer container)
|
||||
{
|
||||
container.ComposeExportedValue("logger", Logging.LogManager.GetLogger("App"));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the composable part assemblies.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user