jellyfin-server/MediaBrowser.Program/Program.cs
LukePulverenti Luke Pulverenti luke pulverenti 7766956274 Extracted Logging into a separate, portable class library
2012-07-30 09:44:28 -04:00

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();
}
}
}