mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 22:43:07 +03:00
Created a BaseApplication class in common
This commit is contained in:
parent
3586c54e90
commit
d54c6d8bf6
@@ -18,7 +18,7 @@ namespace MediaBrowser.Common.Kernel
|
||||
/// <summary>
|
||||
/// Represents a shared base kernel for both the UI and server apps
|
||||
/// </summary>
|
||||
public abstract class BaseKernel<TConfigurationType, TApplicationPathsType> : IDisposable
|
||||
public abstract class BaseKernel<TConfigurationType, TApplicationPathsType> : IDisposable, IKernel
|
||||
where TConfigurationType : BaseApplicationConfiguration, new()
|
||||
where TApplicationPathsType : BaseApplicationPaths, new()
|
||||
{
|
||||
@@ -264,4 +264,10 @@ namespace MediaBrowser.Common.Kernel
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public interface IKernel
|
||||
{
|
||||
Task Init(IProgress<TaskProgress> progress);
|
||||
void Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user