You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
772 B

8 months ago
using Autofac;
using HybirdFrameworkServices.Netty;
8 months ago
using HybirdFrameworkServices.System;
using log4net;
namespace WinFormStarter;
public partial class Form1 : Form
{
private ILog _log = LogManager.GetLogger(typeof(Form1));
private SysUserServices _sysUserServices;
public Form1(SysUserServices sysUserServices)
{
_sysUserServices = sysUserServices;
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
8 months ago
Server server = AppInfo.Container.Resolve<Server>();
server.Begin(9000);
}
8 months ago
private void button2_Click(object sender, EventArgs e)
{
8 months ago
Server server = AppInfo.Container.Resolve<Server>();
server.Send(new byte[] { 1, 2, 3, 4, 9, 5, 6, 6, 7 });
}
8 months ago
}