Kloakk
Kloakk
CC#
Created by Kloakk on 11/30/2023 in #help
The entry point of the program is global code; ignoring 'Program.Main(string[])' entry point.
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using BookingProcessor.Models;


namespace BookingProcessor
{
class Program
{
static void Main(string[] args)
{
var serviceProvider = new ServiceCollection()
.AddDbContext<BookingContext>(options =>
options.UseSqlite("Data Source=booking_data.db"))
.BuildServiceProvider();

// First run in recovery mode to check if there any batch processes outstanding
var recoveryMode = new RecoveryMode(serviceProvider);
recoveryMode.Run().GetAwaiter().GetResult();

// After running in recovery mode, initiate normal mode
var normalMode = new NormalMode(serviceProvider);
normalMode.Run().GetAwaiter().GetResult();

}
}
}
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using BookingProcessor.Models;


namespace BookingProcessor
{
class Program
{
static void Main(string[] args)
{
var serviceProvider = new ServiceCollection()
.AddDbContext<BookingContext>(options =>
options.UseSqlite("Data Source=booking_data.db"))
.BuildServiceProvider();

// First run in recovery mode to check if there any batch processes outstanding
var recoveryMode = new RecoveryMode(serviceProvider);
recoveryMode.Run().GetAwaiter().GetResult();

// After running in recovery mode, initiate normal mode
var normalMode = new NormalMode(serviceProvider);
normalMode.Run().GetAwaiter().GetResult();

}
}
}
Im really not sure why
7 replies
CC#
Created by Kloakk on 11/9/2023 in #help
✅ Localhost HTTP Error 503
No description
15 replies