Sample
This commit is contained in:
parent
d2c2334ac8
commit
06dc7559ba
14
Sample/NoSugarNet.ClientCli/NoSugarNet.ClientCli.csproj
Normal file
14
Sample/NoSugarNet.ClientCli/NoSugarNet.ClientCli.csproj
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\..\NoSugarNet.ClientCore\NoSugarNet.ClientCore.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
12
Sample/NoSugarNet.ClientCli/Program.cs
Normal file
12
Sample/NoSugarNet.ClientCli/Program.cs
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
using NoSugarNet.ClientCore;
|
||||||
|
|
||||||
|
namespace NoSugarNet.ClientCli
|
||||||
|
{
|
||||||
|
internal class Program
|
||||||
|
{
|
||||||
|
static void Main(string[] args)
|
||||||
|
{
|
||||||
|
AppNoSugarNet.Init("127.0.0.1", 1000);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
14
Sample/NoSugarNet.ServerCli/NoSugarNet.ServerCli.csproj
Normal file
14
Sample/NoSugarNet.ServerCli/NoSugarNet.ServerCli.csproj
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\..\NoSugarNet.ServerCore\NoSugarNet.ServerCore.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
16
Sample/NoSugarNet.ServerCli/Program.cs
Normal file
16
Sample/NoSugarNet.ServerCli/Program.cs
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
using ServerCore.Manager;
|
||||||
|
|
||||||
|
namespace NoSugarNet.ServerCli
|
||||||
|
{
|
||||||
|
internal class Program
|
||||||
|
{
|
||||||
|
static void Main(string[] args)
|
||||||
|
{
|
||||||
|
ServerManager.InitServer(1000);
|
||||||
|
while (true)
|
||||||
|
{
|
||||||
|
Console.ReadLine();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user