about summary refs log tree commit diff
path: root/Tests/TestDataGenerator
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/TestDataGenerator')
-rw-r--r--Tests/TestDataGenerator/Program.cs62
1 files changed, 31 insertions, 31 deletions
diff --git a/Tests/TestDataGenerator/Program.cs b/Tests/TestDataGenerator/Program.cs
index 9bd091b..18ba61e 100644
--- a/Tests/TestDataGenerator/Program.cs
+++ b/Tests/TestDataGenerator/Program.cs
@@ -1,31 +1,31 @@
-// See https://aka.ms/new-console-template for more information

-

-using System.Text.Json;

-using System.Text.Json.Serialization;

-using ArcaneLibs.Extensions;

-using LibMatrix.Services;

-using LibMatrix.Utilities.Bot;

-using Microsoft.Extensions.DependencyInjection;

-using Microsoft.Extensions.Hosting;

-using PluralContactBotPoC;

-using PluralContactBotPoC.Bot;

-

-Console.WriteLine("Hello, World!");

-

-var host = Host.CreateDefaultBuilder(args).ConfigureServices((_, services) => {

-    services.AddScoped<TieredStorageService>(x =>

-        new TieredStorageService(

-            cacheStorageProvider: new FileStorageProvider("bot_data/cache/"),

-            dataStorageProvider: new FileStorageProvider("bot_data/data/")

-        )

-    );

-    // services.AddSingleton<DataFetcherConfiguration>();

-    services.AddSingleton<AppServiceConfiguration>();

-

-    services.AddRoryLibMatrixServices();

-    services.AddBot(withCommands: false);

-

-    services.AddHostedService<DataFetcher>();

-}).UseConsoleLifetime().Build();

-

-await host.RunAsync();

+// See https://aka.ms/new-console-template for more information
+
+using System.Text.Json;
+using System.Text.Json.Serialization;
+using ArcaneLibs.Extensions;
+using LibMatrix.Services;
+using LibMatrix.Utilities.Bot;
+using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.Hosting;
+using PluralContactBotPoC;
+using PluralContactBotPoC.Bot;
+
+Console.WriteLine("Hello, World!");
+
+var host = Host.CreateDefaultBuilder(args).ConfigureServices((_, services) => {
+    services.AddScoped<TieredStorageService>(x =>
+        new TieredStorageService(
+            cacheStorageProvider: new FileStorageProvider("bot_data/cache/"),
+            dataStorageProvider: new FileStorageProvider("bot_data/data/")
+        )
+    );
+    // services.AddSingleton<DataFetcherConfiguration>();
+    services.AddSingleton<AppServiceConfiguration>();
+
+    services.AddRoryLibMatrixServices();
+    services.AddBot(withCommands: false);
+
+    services.AddHostedService<DataFetcher>();
+}).UseConsoleLifetime().Build();
+
+await host.RunAsync();