Net.Leksi.E6dWebApp 1.1.17

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

// Install Net.Leksi.E6dWebApp as a Cake Tool
#tool nuget:?package=Net.Leksi.E6dWebApp&version=1.1.17                

Attention! This article, as well as this announcement, are automatically translated from Russian.

The Net.Leksi.E6dWebApp library (E6dWebApp is short for Embedded Web Application) allows you to embed a web service (hereinafter server) into a local application for various application purposes. For example:

  • Generating text files using Razor Pages:
    • for example, sources of various stubs and auxiliary files, as, for example, happens in WPF,
    • reports from the desktop application in the form of web pages,
    • something else...,
  • Unit testing of the web service.

All classes are contained in the Net.Leksi.E6dWebApp namespace.

  • Runner - a class that controls the configuration, start and stop of server, and also provides authorized access to it.
  • IConnector - interface of the object provided by Runner through which authorized requests to server are made.
  • RequestParameter - a carrier object of a user object transmitted to the server in parallel with the request. This object is available on server through dependency injection.

Important: It is recommended to create any project that uses this library as an Empty ASP.Net Core template, or manually replace the Sdk attribute from "Microsoft.NET.Sdk" to "Microsoft.NET.Sdk.Web" in the project's XML file!

It is also proposed to familiarize yourself with the demonstration projects:

  • Demo:Helloer - shows how to use the GetLink connector method.
  • Demo:InterfaceImplementer - shows how to use the built-in web server to generate class source files.
  • Demo:UnitTesting - shows how to write unit tests for a web application.
Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  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.  net8.0-windows7.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0-windows7.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net8.0-windows7.0

    • 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.1.17 122 4/10/2024
1.1.16 191 12/29/2023

1.1.14 Добавлено перенаправление вывода на консоль из оработчика запроса.
     Added redirection of output to the console from the request handler.
     1.1.11 NET8.0
     1.1.2      Добавлена обработка исключений, возникающих в процессе конфигурации встраиваемого сервера, отсутствие которой ранее приводило к зависанию.
     Added handling of exceptions that occur in the embedded server configuration process, the absence of which previously led to a hang.
     1.1.0       Добавлен параметр Action<HttpContext> onRequest к методам IConnector: Get, Send, GetLink; добавлен метод IConnector: ClearLink; исправлены обнаруженные недочёты.
     Added parameter Action<HttpContext> onRequest to IConnector methods: Get, Send, GetLink; added method IConnector: ClearLink; detected bugs fixed.