Looplex.OpenForExtension.Abstractions 1.1.1

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

// Install Looplex.OpenForExtension.Abstractions as a Cake Tool
#tool nuget:?package=Looplex.OpenForExtension.Abstractions&version=1.1.1                

Looplex.OpenForExtension.Abstractions

Description

Looplex.OpenForExtension.Abstractions offers a robust set of interfaces designed to facilitate the implementation of kernel architecture in projects. It embodies the open-for-extension principle, providing a concrete and flexible tool for extending and customizing your application’s core functionality.

Table of Contents

Installation

To install Looplex.OpenForExtension.Abstractions, use the following command:

dotnet add package Looplex.OpenForExtension.Abstractions

Commands

Commands are the extension points available in you kernel.

The available interfaces define the possible extension points for the plugins. The following shows how the default commands may be used:

•	IHandleInput: Handles kernel input.
•	IValidateInput: Validates kernel input.
•	IDefineRoles: Defines kernel roles.
•	IBind: Binds kernel events.
•	IBeforeAction: Executes logic before the default action.
•	IAfterAction: Executes logic after the default action.
•	IReleaseUnmanagedResources: Releases unmanaged resources (dispose).

Usage

Here’s an example of how to use the interfaces provided by Looplex.OpenForExtension.Abstractions in your project:

public async Task ServiceMethod(IContext context, CancellationToken cancellationToken)
{
    var example = context.State.Example; // Kernel input handling
    await context.Plugins.ExecuteAsync<IHandleInput>(context, cancellationToken);
    
    Validate(example); // Kernel input validation
    await context.Plugins.ExecuteAsync<IValidateInput>(context, cancellationToken);

    context.Roles["Role"] = example; // Kernel roles definition
    await context.Plugins.ExecuteAsync<IDefineActors>(context, cancellationToken);

    context.Roles["Role"].On("event", (sender, e) => { }); // Kernel event binding (`example` instance implements IHasEventHandlerTrait)
    await context.Plugins.ExecuteAsync<IBind>(context, cancellationToken); 

    await context.Plugins.ExecuteAsync<IBeforeAction>(context, cancellationToken);

    if (!context.SkipDefaultAction)
    {
        // Execute service kernel default action
    }

    await context.Plugins.ExecuteAsync<IAfterAction>(context, cancellationToken); 

    await context.Plugins.ExecuteAsync<IReleaseUnmanagedResources>(context, cancellationToken); 
}

For more detailed examples, refer to the samples project on the repository page .

License

This project is licensed under the Looplex Limited Public License. Feel free to edit and distribute this template as you like.

See LICENSE.md for more information.

Contact

If you have any questions or feedback, feel free to reach out:

•	Email: guilherme.camara@outlook.com.br
•	Email: guilherme.camara@looplex.com.br
•	Email: dev@looplex.com.br
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Looplex.OpenForExtension.Abstractions:

Package Downloads
Looplex.DotNet.Core.Domain

Simple framework that allows the easy aplication of the Open for Extension SOLID principle in .Net projects.

Looplex.DotNet.Core.Application.Abstractions

Simple framework that allows the easy aplication of the Open for Extension SOLID principle in .Net projects.

Looplex.DotNet.Core.Middlewares

Simple framework that allows the easy aplication of the Open for Extension SOLID principle in .Net projects.

Looplex.DotNet.Core.WebAPI

Simple framework that allows the easy aplication of the Open for Extension SOLID principle in .Net projects.

Looplex.OpenForExtension

Looplex.OpenForExtension provides default implementations for the interfaces defined in Looplex.OpenForExtension.Abstractions, including IContext, IPlugin, and IEventHandlingTrait. These implementations offer a solid foundation for extending and customizing your project's kernel architecture.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.1 3,900 7/20/2024
1.1.0 156 7/20/2024