EasyIPC 1.0.3

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

// Install EasyIPC as a Cake Tool
#tool nuget:?package=EasyIPC&version=1.0.3

EasyIPC

An inter process communication layer based on Win32, to make it easy to communicate and send objects between 2 applications. IMPORTANT: The way this layer works is by the usage of mutex within the RAM. Since a mutex must be uniqe, it´s on your side to avoid exception by using an eventname more than once.

Implement EasyIPC Receiver

After loading the nuget package the implementation is quite simple. First you have to implement an event based on the EasyIPC message delegate You can see it by the following example

public event Eventer.MessageReceived LogMessageReceived;

Bind the event delegate to a handler method, where you want to handle the object, you will receive from outside.

 LogMessageReceived= OnLogMessageReceived;

Activate the receiver thread by a task run. Be sure to define the type of the object you will receive. The following example shows, that a string object will be received and handled.

Task.Run(() => Eventer.Receiver("mysimplestringevent", LogMessageReceived, Eventer.EVENTTYPE.TEXT));

You want to receive a string object from outside ... handle it 😃. Be sure to interpret the sent object the right way, depending on the expected eventtype you defined within the task before.

   internal static void OnLogMessageReceived(object logMessage)
        {
            string receivedString = logMessage.ToString();
            // Do something awesome
        }

Implement EasyIPC Sender

The sender is much easier to implement, since its a simple line of code. Just be sure, that the event name, you will use fits the name you expect on the receiver part. Otherwise the event wont be fired.

Eventer.Sender("mysimplestringevent", "i am an awesome string");
Product Compatible and additional computed target framework versions.
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  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
1.0.3 894 10/15/2018

Fixed Namespace.