summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.Server/Program.cs
blob: b6fc92736621447796cd201618c39d09f7f3daf9 (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
34
35
36
37
namespace HandBrake.Server
{
    using System;
    using System.Linq;

    using HandBrake.ApplicationServices.Services;
    using HandBrake.ApplicationServices.Services.Interfaces;

    /// <summary>
    /// The HandBrake Service
    /// </summary>
    class Program
    {
        /// <summary>
        /// The main.
        /// </summary>
        /// <param name="args">
        /// The args.
        /// </param>
        static void Main(string[] args)
        {
            if (args.Count() != 1)
            {
                //Console.WriteLine("Invalid Arguments");
                //Console.ReadLine();

                IServerService server = new ServerService();
                server.Start("8001");
            }
            else
            {
                IServerService server = new ServerService();
                server.Start(args[0]);
            }
        }
    }
}