Fluent.ProcessCommunication 2.5.0

.NET Standard 2.0 .NET Framework 4.5
There is a newer version of this package available.
See the version list below for details.
NuGet\Install-Package Fluent.ProcessCommunication -Version 2.5.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.
dotnet add package Fluent.ProcessCommunication --version 2.5.0
<PackageReference Include="Fluent.ProcessCommunication" Version="2.5.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Fluent.ProcessCommunication --version 2.5.0
#r "nuget: Fluent.ProcessCommunication, 2.5.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Fluent.ProcessCommunication as a Cake Addin
#addin nuget:?package=Fluent.ProcessCommunication&version=2.5.0

// Install Fluent.ProcessCommunication as a Cake Tool
#tool nuget:?package=Fluent.ProcessCommunication&version=2.5.0

Fluent.ProcessCommunication

Server operations
using Fluent.ProcessCommunication.Test;
using Newtonsoft.Json;
using System;

namespace Fluent.ProcessCommunication.Server.Test
{
    public class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Server started!");

            ProcessCommunicationServer process = null;

            // callback is called whenever the client sends a message to the server
            void callback(Package package)
            {
                // content is the content of the message sent by the client
                var content = JsonConvert.DeserializeObject<CacheRecord>((string)package.Content);
                Console.WriteLine(content.Content);

                // Here you treat what you want when you receive the request
                var ret = true;

                // You deliver the customer feedback here
                process.ProcessCommunicationPost.Response(package.TransportKey, ret);
            }

            var client = "test-client";

            process = new ProcessCommunicationServer($"post-{client}", client, callback);
            process.Init();

            Console.ReadKey();
        }
    }
}

Client operations
using Newtonsoft.Json;
using System;
using System.Text;

namespace Fluent.ProcessCommunication.Test
{
    partial class Program
    {
        static void Main(string[] args)
        {
            // This is the content I want to send
            var cache = new CacheRecord();
            cache.Id = Guid.NewGuid().ToString();
            cache.Content = "content here";

            var retorno = new ProcessCommunicationPost("test-client").Post<bool>(cache);
            var json = JsonConvert.SerializeObject(retorno);
            Console.WriteLine(json);
            Console.ReadKey();
        }
    }
}

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Fluent.ProcessCommunication:

Package Downloads
Fluent.CacheControl

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.1 463 1/20/2020
3.0.0 402 1/20/2020
2.5.2 389 5/13/2019
2.5.0 898 7/19/2018