diff options
Diffstat (limited to 'MediaBrowser.Common')
| -rw-r--r-- | MediaBrowser.Common/IApplicationHost.cs | 16 | ||||
| -rw-r--r-- | MediaBrowser.Common/MediaBrowser.Common.csproj | 4 |
2 files changed, 6 insertions, 14 deletions
diff --git a/MediaBrowser.Common/IApplicationHost.cs b/MediaBrowser.Common/IApplicationHost.cs index 59e3c1767..6891152ee 100644 --- a/MediaBrowser.Common/IApplicationHost.cs +++ b/MediaBrowser.Common/IApplicationHost.cs @@ -5,6 +5,7 @@ using System.Threading.Tasks; using MediaBrowser.Common.Plugins; using MediaBrowser.Model.Events; using MediaBrowser.Model.Updates; +using Microsoft.Extensions.DependencyInjection; namespace MediaBrowser.Common { @@ -14,12 +15,6 @@ namespace MediaBrowser.Common public interface IApplicationHost { /// <summary> - /// Gets the display name of the operating system. - /// </summary> - /// <value>The display name of the operating system.</value> - string OperatingSystemDisplayName { get; } - - /// <summary> /// Gets the name. /// </summary> /// <value>The name.</value> @@ -105,13 +100,6 @@ namespace MediaBrowser.Common T Resolve<T>(); /// <summary> - /// Resolves this instance. - /// </summary> - /// <typeparam name="T"></typeparam> - /// <returns>``0.</returns> - T TryResolve<T>(); - - /// <summary> /// Shuts down. /// </summary> Task Shutdown(); @@ -131,7 +119,7 @@ namespace MediaBrowser.Common /// <summary> /// Inits this instance. /// </summary> - Task Init(); + Task Init(IServiceCollection serviceCollection); /// <summary> /// Creates the instance. diff --git a/MediaBrowser.Common/MediaBrowser.Common.csproj b/MediaBrowser.Common/MediaBrowser.Common.csproj index 2220d4661..715f4fccd 100644 --- a/MediaBrowser.Common/MediaBrowser.Common.csproj +++ b/MediaBrowser.Common/MediaBrowser.Common.csproj @@ -12,6 +12,10 @@ </ItemGroup> <ItemGroup> + <PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="2.2.0" /> + </ItemGroup> + + <ItemGroup> <Compile Include="..\SharedVersion.cs" /> </ItemGroup> |
