ProSol.Messaging 4.0.0

dotnet add package ProSol.Messaging --version 4.0.0                
NuGet\Install-Package ProSol.Messaging -Version 4.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="ProSol.Messaging" Version="4.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ProSol.Messaging --version 4.0.0                
#r "nuget: ProSol.Messaging, 4.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 ProSol.Messaging as a Cake Addin
#addin nuget:?package=ProSol.Messaging&version=4.0.0

// Install ProSol.Messaging as a Cake Tool
#tool nuget:?package=ProSol.Messaging&version=4.0.0                

ProSol.Messaging

Implements a message broker with ability to build a pipeline of listeners.

For example, let's make a pipeline which detects future and past dates:

Add package:

dotnet add package ProSol.Messaging --version 4.0
using ProSol.Messaging;
using ProSol.Messaging.Filtering;
using ProSol.Messaging.Acting;

var provider = new PipelineMessagePublisher<DateTime>();

provider
    .Endpoint(x => x >= DateTime.Now)
    .Act(x => Console.WriteLine($"Future: {x}"));

provider
    .Act(x => Console.WriteLine($"Past: {x}"));

provider.Publish(DateTime.Today.AddDays(1));
provider.Publish(DateTime.Today.AddDays(-1));

Try this and you will see two messages in the console, with dates, depending on your current time:

Future: ...
Past: ...

That's it! It's basically a pipeline builder for dispatching the messages.

There are some more extension methods for dispatching, you may find there:

Happy coding!

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on ProSol.Messaging:

Package Downloads
ProSol.Html.TagsProvider

TagsProvider is a tool for extracting HTML tags from a string, in event-driven way. Helps to extract text, structured data, from a specific site.

ProSol.WebScrap

A HTML parser, for extracting the text from a web pages, with CSS selectors.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.0.0 484 12/8/2023
4.0.0-rc.9.0 84 12/7/2023
4.0.0-rc.8.0 70 12/7/2023
4.0.0-rc.7.4 76 12/5/2023
4.0.0-rc.7.3 65 12/5/2023
4.0.0-rc.7.2 74 12/5/2023
4.0.0-rc.7.1 76 12/5/2023
4.0.0-rc.7.0 72 12/5/2023
4.0.0-rc.6.0 87 12/2/2023
4.0.0-rc.5.1 76 11/30/2023
4.0.0-rc.5.0 69 11/30/2023
4.0.0-rc.3.0 78 11/24/2023
4.0.0-rc.2 77 11/24/2023
4.0.0-rc.1 80 11/24/2023
3.0.1 176 11/24/2023
3.0.0 164 11/22/2023
3.0.0-rc.0.2 75 11/21/2023
3.0.0-rc.0.1 71 11/20/2023
2.0.0 142 11/19/2023
1.0.0 124 11/16/2023