aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Program/Program.cs
blob: a951ec7dba89053dde956b6fa5180f7e8ff59cc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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();
        }
    }
}