public void ConfigureServices(IServiceCollection services) { services.AddSwaggerMiddleware(AppVersion.GetCurrent( )); services.AddHarpyCorsPolice( ); services.AddCulture("en-US"); services.AddHangfire(HangfireSQLite.UseStorage(_hangfireConnection)); services.AddHarpyControllers( ); services.AddDatabase( connection => connection.UseSqliteConnection(_defaultConnetion, options => options.AddMigrations("Presentations.Migrations") ), context => { context.AddContext <ExempleContext>( ); }, options => options .EnableLog( ) //.UseTransaction( ) ); services.AddHarpy( ); services.AddExemple( ); }