TRENZ.EL.ELAPI 1.1.1

dotnet add package TRENZ.EL.ELAPI --version 1.1.1
                    
NuGet\Install-Package TRENZ.EL.ELAPI -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="TRENZ.EL.ELAPI" Version="1.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TRENZ.EL.ELAPI" Version="1.1.1" />
                    
Directory.Packages.props
<PackageReference Include="TRENZ.EL.ELAPI" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TRENZ.EL.ELAPI --version 1.1.1
                    
#r "nuget: TRENZ.EL.ELAPI, 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.
#:package TRENZ.EL.ELAPI@1.1.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TRENZ.EL.ELAPI&version=1.1.1
                    
Install as a Cake Addin
#tool nuget:?package=TRENZ.EL.ELAPI&version=1.1.1
                    
Install as a Cake Tool

El.ElApi

This package contains supportive developer tooling for an easyLogic 3.15 feature. An easyLogic development license is required.

See https://docs.ela.easylogic.de for usage details.

Basic usage

In an ASP.NET Core project,

  • add this as a NuGet package references.
  • your Configure method (or top-level method) needs to end something like:
// add this _before_ routing
app.UseElApiDiscovery();

app.UseRouting();

app.UseEndpoints(endpoints =>
{
    endpoints.MapControllers();

    endpoints.MapHub<ProgressHub>("/hubs/progress"); // add this inside `UseEndpoints`
});

A controller should follow an ELA-compatible naming convention. (If it does not, you may need to fully specify the URL.) For example, the class can be declared like:

[Area("_Default")]
[Route("ELAPI/[area]/[controller]/[action]")]
public class dMyInvoiceController : ControllerBase
{
    private readonly IHubContext<ProgressHub> _HubContext;

    public dMyInvoiceController(IHubContext<ProgressHub> hubContext)
    {
        _HubContext = hubContext;
    }
}

If used on a container of the type MyInvoice, easyLogic will automatically expand the correct route.

Finally, a method body should look like:

[HttpPost]
public async Task<IActionResult> MyButtonAction([FromBody] ContainerWithProgressRequest request)
{
    var progress = ELSimpleProgress.Create(request.SessionID, _HubContext);

    using var eldata = await ELDatas.OpenAsync(/* some connection string */, request.UserID);

    return Ok();
}

Inside, you can use eldata to access the database, and progress to send progress information back to the client. UserID is also set, so you can use server messages as well.

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

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.1.1 92 1/15/2026
1.1.0 106 1/5/2026
1.0.0 573 10/13/2022
1.0.0-beta3 261 10/12/2022
1.0.0-beta2 261 10/5/2022
1.0.0-beta1 266 10/5/2022

# 1.1.1
* Fixed an issue where requests using the new `ContainerIDList` property wouldn't be recognized as a well known
parameter
# 1.1.0
* Added models for requests with multiple container IDs
* Removed support for .NET Core 3.1, .NET 6, and .NET 7; added support for .NET 10
# 1.0.0
This release is intended to be used with easyLogic 3.15.2 and newer.
It supports:
* simple progress (small inline progress bar)
* descriptive progress (a
larger progress bar with an optional title and description of the current step)
* ASP.NET Core 3.1, 6.0, and 7.0