Skip to content

tiksn/TIKSN-Framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TIKSN Framework

Version TIKSN Framework NuGet Package Downloads Developed by TIKSN Lab StandWithUkraine

Key features are

  • Versioning
  • Finance, Currency
  • Foreign Exchange
  • Money
  • Pricing strategy
  • Telemetry
  • Licensing
  • Composite Weighted Progress
  • Repository and Unity of Wok pattern implementation with Entity Framework Core
  • Network Connectivity Service and Triggering
  • Settings
  • Windows Registry configuration source
  • Azure Storage Repository
  • MongoDB Repository
  • NoDB Repository
  • Lingual and Regional Localization
  • Serialization
  • Rest Requester
  • Rest Repository
  • Dependency Injection
  • Composition Root Setup base classes

Setup for Web Application

using Autofac;
using Autofac.Extensions.DependencyInjection;
using TIKSN.DependencyInjection;
using TIKSN.Mapping;

var builder = WebApplication.CreateBuilder(args);

builder.Host.UseServiceProviderFactory(new AutofacServiceProviderFactory());

builder.Services.AddFrameworkCore();

// Optional: Bulk register mappers or it can be done one by one
builder.Services.Scan(scan => scan
    .FromApplicationDependencies()
        .AddClasses(classes => classes.AssignableTo(typeof(IMapper<,>)))
            .AsImplementedInterfaces());

builder.Host.ConfigureContainer<ContainerBuilder>(containerBuilder =>
{
    containerBuilder.RegisterModule<CoreModule>();
    // Optional: Register project modules
});

var app = builder.Build();

await app.RunAsync().ConfigureAwait(false);

Acknowledgments