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.

64 lines
1.0 KiB

2 years ago
using ConsoleApp.TelnetSamples;
using Samples.Calculate;
2 years ago
using Samples.DI;
using Samples.Event;
using Samples.MessagePrinter;
using Samples.StringLength;
2 years ago
using Samples.Telnet;
2 years ago
namespace ConsoleApp;
class Program
{
static void Main(string[] args)
{
#region Delegate
2 years ago
// CalculateSample.Sample();
// MessagePrinterSample.Sample();
2 years ago
#endregion
2 years ago
#region Callback
2 years ago
// StringLengthSample.Sample();
2 years ago
#endregion
2 years ago
#region Event
2 years ago
// EventSample.Sample();
2 years ago
#endregion
2 years ago
2 years ago
#region Dependency Injection
2 years ago
// DISample.Sample();
2 years ago
#endregion
2 years ago
#region Telnet
2 years ago
//TelnetConsole console = new TelnetConsole(new StreamTelnetClient());
//TelnetConsole console = new TelnetConsole(new SocketTelnetClient());
//console.Start("200.200.200.123");
#endregion
#region Async Telnet
// AsyncTelnetConsole console = new AsyncTelnetConsole(new AsyncStreamTelnetClient());
AsyncTelnetConsole console = new AsyncTelnetConsole(new AsyncSocketTelnetClient());
2 years ago
console.Start("200.200.200.123");
#endregion
2 years ago
}
2 years ago
}