jellyfin-server/MediaBrowser.Program/Program.cs

36 lines
823 B
C#
Raw Normal View History

2012-07-12 06:55:27 +00:00
using System;
using MediaBrowser.Controller;
using MediaBrowser.Model.Progress;
2012-07-12 06:55:27 +00:00
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();
2012-07-12 06:55:27 +00:00
2012-07-30 04:06:05 +00:00
Progress<TaskProgress> progress = new Progress<TaskProgress>();
kernel.Init(progress);
2012-07-12 06:55:27 +00:00
var time = DateTime.Now - now;
Console.WriteLine("Done in " + time.TotalSeconds + " seconds");
2012-07-12 06:55:27 +00:00
Console.WriteLine("Press Enter to quit.");
Console.ReadLine();
kernel.Dispose();
2012-07-12 06:55:27 +00:00
}
}
}