Ejemplo n.º 1
0
    public static async Task Main(string[] arguments)
    {
        var logo = $@"
  __        ___          _                            ____
  \ \      / (_)_ __ ___| |__   ___  _ __ ___   ___  / ___|___  _ __ ___
   \ \ /\ / /| | '__/ _ \ '_ \ / _ \| '_ ` _ \ / _ \| |   / _ \| '__/ _ \
    \ V  V / | | | |  __/ | | | (_) | | | | | |  __/| |__| (_) | | |  __/
     \_/\_/  |_|_|  \___|_| |_|\___/|_| |_| |_|\___(_)____\___/|_|  \___|

  {WirehomeCoreVersion.Version}

  (c) Christian Kratky 2011 - 2022
  https://github.com/chkr1011/Wirehome.Core

";

        try
        {
            global::System.Console.WriteLine(logo);

            await WirehomeCoreHost.Run(arguments).ConfigureAwait(false);
        }
        catch (OperationCanceledException)
        {
        }
        catch (Exception exception)
        {
            global::System.Console.WriteLine(exception);
        }
    }
Ejemplo n.º 2
0
        public static void Main(string[] arguments)
        {
            var logo = $@"
      __        ___          _                            ____
      \ \      / (_)_ __ ___| |__   ___  _ __ ___   ___  / ___|___  _ __ ___
       \ \ /\ / /| | '__/ _ \ '_ \ / _ \| '_ ` _ \ / _ \| |   / _ \| '__/ _ \
        \ V  V / | | | |  __/ | | | (_) | | | | | |  __/| |__| (_) | | |  __/
         \_/\_/  |_|_|  \___|_| |_|\___/|_| |_| |_|\___(_)____\___/|_|  \___|

      {WirehomeCoreVersion.Version}

      (c) Christian Kratky 2011 - 2020
      https://github.com/chkr1011/Wirehome.Core

";

            try
            {
                global::System.Console.WriteLine(logo);

                WirehomeCoreHost.Start(arguments);

                global::System.Console.WriteLine("Press <Enter> to exit.");
                global::System.Console.ReadLine();

                WirehomeCoreHost.Stop();
            }
            catch (OperationCanceledException)
            {
            }
            catch (Exception exception)
            {
                global::System.Console.WriteLine(exception);
            }
        }