2 Star 2 Fork 2

大湿胸/P2PGrid

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Program.cs 1.12 KB
一键复制 编辑 原始数据 按行查看 历史
大湿胸 提交于 2017-06-21 09:51 +08:00 . Init
using System;
using System.Text;
namespace P2PGrid
{
class Program
{
/// <summary>
/// Application starts here. Create an instance of this class and use it as the main object.
/// </summary>
/// <param name="args"></param>
static void Main(string[] args)
{
P2PApp app = new P2PApp();
Console.WriteLine("Input exit to quit");
while (true)
{
// get the user iput
string msg = Console.ReadLine();
if (msg != null)
{
// if user input exit then exit the program
if (msg == "exit")
break;
// delegate to Commander to process the input
MessagerProcessor u = new MessagerProcessor(app);
u.Process(msg);
}
}
Console.WriteLine("OK that does it! 88");
//Clean up before finish
app.CloseAll();
GC.Collect();
GC.WaitForPendingFinalizers();
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/iframework/p2pgrid.git
git@gitee.com:iframework/p2pgrid.git
iframework
p2pgrid
P2PGrid
master

搜索帮助