blob: 944f95ffcf57f5fc1d01cb51fee855c9cb73bfd8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/***************************************************************************************************
Copyright (C) 2024 The Qt Company Ltd.
SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
***************************************************************************************************/
namespace FooConsoleApp
{
public static class Program
{
public static bool KeepRunning { get; set; } = true;
public static int Main(string[] args)
{
Console.WriteLine("FooConsoleApp: started");
Thread.Sleep(1000);
while (KeepRunning) {
Console.WriteLine("FooConsoleApp: running");
Thread.Sleep(1000);
}
Console.WriteLine("FooConsoleApp: stopped");
return 0;
}
}
}
|