jellyfin/MediaBrowser.Program/Program.cs
LukePulverenti Luke Pulverenti luke pulverenti 882e20e9a5 Added IProgress to Kernel.Init
2012-07-30 00:06:05 -04:00

34 lines
791 B
C#

using System;
using MediaBrowser.Controller;
using MediaBrowser.Common.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();
}
}
}