mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 22:07:13 -04:00
36 lines
823 B
C#
36 lines
823 B
C#
using System;
|
|
using MediaBrowser.Controller;
|
|
using MediaBrowser.Model.Progress;
|
|
|
|
namespace MediaBrowser.Program
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
LoadKernel();
|
|
}
|
|
|
|
private static void LoadKernel()
|
|
{
|
|
DateTime now = DateTime.Now;
|
|
|
|
Console.WriteLine("Loading");
|
|
|
|
Kernel kernel = new Kernel();
|
|
|
|
Progress<TaskProgress> progress = new Progress<TaskProgress>();
|
|
|
|
kernel.Init(progress);
|
|
|
|
var time = DateTime.Now - now;
|
|
Console.WriteLine("Done in " + time.TotalSeconds + " seconds");
|
|
|
|
Console.WriteLine("Press Enter to quit.");
|
|
Console.ReadLine();
|
|
|
|
kernel.Dispose();
|
|
}
|
|
}
|
|
}
|