Used queries to get data from scrape database instead of FabTime to use a single data source.
This commit is contained in:
32
ReportingServices.Desktop/Program.cs
Normal file
32
ReportingServices.Desktop/Program.cs
Normal file
@ -0,0 +1,32 @@
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace ReportingServices.Desktop
|
||||
{
|
||||
internal static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.SetHighDpiMode(HighDpiMode.SystemAware);
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
var services = new ServiceCollection();
|
||||
ConfigureServices(services);
|
||||
using (ServiceProvider serviceProvider = services.BuildServiceProvider())
|
||||
{
|
||||
var form1 = serviceProvider.GetRequiredService<Form1>();
|
||||
Application.Run(form1);
|
||||
}
|
||||
}
|
||||
|
||||
private static void ConfigureServices(ServiceCollection services)
|
||||
{
|
||||
services.AddSingleton<Form1>()
|
||||
.AddLogging(configure => configure.AddConsole());
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user