Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            // Make environment details.
            var environmentDetails = new EnvironmentDetails ();

            // Run as service deamon otherwise as client commands.
            if (args.Any () && args.First () == environmentDetails.ServiceDaemonCommand)
                RunServiceDaemon (environmentDetails);
            else
                RunClientCommand (environmentDetails, args);
        }