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.
See the version list below for details.
Install-Package Fluent.ProcessCommunication -Version 2.5.0
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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.
-
.NETFramework 4.5
- Microsoft.CSharp (>= 4.5.0)
- Newtonsoft.Json (>= 9.0.1)
-
.NETFramework 4.6.1
- Microsoft.CSharp (>= 4.5.0)
- Newtonsoft.Json (>= 9.0.1)
-
.NETStandard 2.0
- Microsoft.CSharp (>= 4.5.0)
- Newtonsoft.Json (>= 11.0.2)
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.