https://github.com/leksiqq/e6dwebapp
It's a mean to use a web-application at the desctop application for various purposes.
https://github.com/leksiqq/e6dwebapp
embedded-web-application source-generation units-testing
Last synced: 10 months ago
JSON representation
It's a mean to use a web-application at the desctop application for various purposes.
- Host: GitHub
- URL: https://github.com/leksiqq/e6dwebapp
- Owner: Leksiqq
- License: mit
- Created: 2022-05-01T05:26:04.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-10T08:47:54.000Z (about 2 years ago)
- Last Synced: 2025-03-14T21:37:08.863Z (over 1 year ago)
- Topics: embedded-web-application, source-generation, units-testing
- Language: C#
- Homepage: https://github.com/Leksiqq/E6dWebApp/wiki
- Size: 93.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**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.