AutoFrontend is a framework for automatically building UI applications based on custom business logic
Some use cases:
-
For prototyping. If you need to create prototype of some UI application in a very fast way.
-
For initial development phase.
If you want to start from business logic and build custom UI later when BL will have more final shape. -
For building test data generators. These types of applications often do not require custom UI. Often it should just works.
-
For building test\admin\internal usage applications.
Typical examples: test client apps for some services, token generators, admin tools, e.t.c
| Technology | Supported platforms | Nuget |
|---|---|---|
| Wpf | .NET 8+ (Recommended) or .NET Framework 4.8+ | AutoFrontend.Wpf |
- Create new empty project for target technology
- Install nuget package AutoFrontend.* based on selected technology
- Create FrontendBuilder, register services, and run application. Example:
public class CustomService
{
public int Add(int x, int y) => x + y;
public int Substract(int x, int y) => x - y;
}Program.cs
internal class Program
{
[STAThread]
public static void Main()
{
var customService = new CustomService(); //Get instance of your service somehow
var frontendBuilder = new FrontendBuilder();
frontendBuilder.Service(customService);
frontendBuilder.BuildWpfApplication().Run();
}
}