Echo.Client 2.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Echo.Client --version 2.0.0                
NuGet\Install-Package Echo.Client -Version 2.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Echo.Client" Version="2.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Echo.Client --version 2.0.0                
#r "nuget: Echo.Client, 2.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Echo.Client as a Cake Addin
#addin nuget:?package=Echo.Client&version=2.0.0

// Install Echo.Client as a Cake Tool
#tool nuget:?package=Echo.Client&version=2.0.0                

Echo Client

Echo Client is client for Echo Server

Installation

Echo Server is a TCP server for sending and receiving objects synchronously.

Usage


using Echo.Client;

namespace EchoTest
{
    class Program
    {
        static void Main(string[] args)
        {
            Question question = new Question { Ask = "How are you?" };
            using (EchoClient client = new EchoClient("MY_COMPUTER", IPAddress.Parse("127.0.0.1"), 8888))
            {
                client.Connect();
                Reply reply = client.Send<Reply>(question);
                client.Close();
            }
        }
    }
}

namespace Common
{
    [Serializable]
    public class Question
    {
        public string Ask { get; set; }
    }
    [Serializable]
    public class Reply
    {
        public string Answer { get; set; }
    }
}

Or smaller...


using Echo.Client;

namespace EchoTest
{
    class Program
    {
        static void Main(string[] args)
        {
            Question question = new Question { Ask = "How are you?" };
            Reply reply = EchoClient.SendDirect<Reply>(IPAddress.Parse("127.0.0.1"), 8888, question);
        }
    }
}

Contributing

Please make sure to update tests as appropriate.

License

MIT

Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.0.1 339 9/27/2021
4.0.0 273 9/27/2021
3.0.0 283 9/27/2021
2.0.0 277 9/27/2021
1.0.0 307 9/27/2021

Improve memory usage