summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LibraryAPI.csproj1
-rw-r--r--Program.cs2
-rw-r--r--Properties/launchSettings.json5
-rw-r--r--Services/LoggerService.cs37
-rw-r--r--bin/Debug/net6.0/LibraryAPI.deps.json336
-rw-r--r--requests.query1
-rw-r--r--wwwroot/Log.txt4
7 files changed, 377 insertions, 9 deletions
diff --git a/LibraryAPI.csproj b/LibraryAPI.csproj
index 61e4845..335e82a 100644
--- a/LibraryAPI.csproj
+++ b/LibraryAPI.csproj
@@ -12,6 +12,7 @@
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.9" />
+ <PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.1" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="6.0.8" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="6.0.6" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
diff --git a/Program.cs b/Program.cs
index 2b4a6fe..3abbb4e 100644
--- a/Program.cs
+++ b/Program.cs
@@ -1,5 +1,6 @@
using Microsoft.EntityFrameworkCore;
using LibraryAPI.Models;
+using LibraryAPI.Services;
var builder = WebApplication.CreateBuilder(args);
@@ -7,6 +8,7 @@ builder.Services.AddControllers().AddJsonOptions(x => x.JsonSerializerOptions.Re
builder.Services.AddDbContext<LibraryContext>(opt => opt.UseNpgsql(builder.Configuration.GetConnectionString("LibraryContext")));
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
+builder.Services.AddHostedService<LoggerService>();
var app = builder.Build();
diff --git a/Properties/launchSettings.json b/Properties/launchSettings.json
index 2831de1..7a7f65b 100644
--- a/Properties/launchSettings.json
+++ b/Properties/launchSettings.json
@@ -1,4 +1,5 @@
-{
+// HTTPS address: https://localhost:7246
+{
"$schema": "https://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
@@ -14,7 +15,7 @@
"dotnetRunMessages": true,
"launchBrowser": true,
"launchUrl": "swagger",
- "applicationUrl": "https://localhost:7246;http://localhost:5218",
+ "applicationUrl": "http://localhost:5218",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
diff --git a/Services/LoggerService.cs b/Services/LoggerService.cs
new file mode 100644
index 0000000..dd78e23
--- /dev/null
+++ b/Services/LoggerService.cs
@@ -0,0 +1,37 @@
+using Microsoft.AspNetCore.Mvc;
+using Microsoft.Extensions.Hosting;
+
+namespace LibraryAPI.Services {
+ public class LoggerService : IHostedService {
+ private readonly IWebHostEnvironment env;
+ private readonly string log_file = "Log.txt";
+ private Timer timer;
+
+ public LoggerService(IWebHostEnvironment env) {
+ this.env = env;
+ }
+
+ public Task StartAsync(CancellationToken cancel_token) {
+ timer = new Timer(DoWork, null, TimeSpan.Zero, TimeSpan.FromMinutes(5));
+ return Task.CompletedTask;
+ }
+
+ public void DoWork(object state){
+ LogToFile("Executing task\n" + DateTime.Now.ToString("dd/MM/yyyy hh:mm:ss"));
+ }
+
+ public Task StopAsync(CancellationToken cancel_token) {
+ LogToFile("Stopping task...\n");
+ timer.Dispose();
+ return Task.CompletedTask;
+ }
+
+ private void LogToFile(string message) {
+ var path = $@"{env.ContentRootPath}/wwwroot/{log_file}";
+
+ using (StreamWriter w = new StreamWriter(path, append: true)) {
+ w.WriteLine(message);
+ }
+ }
+ }
+}
diff --git a/bin/Debug/net6.0/LibraryAPI.deps.json b/bin/Debug/net6.0/LibraryAPI.deps.json
index 8ed2241..5e76510 100644
--- a/bin/Debug/net6.0/LibraryAPI.deps.json
+++ b/bin/Debug/net6.0/LibraryAPI.deps.json
@@ -10,6 +10,7 @@
"dependencies": {
"Microsoft.EntityFrameworkCore.Design": "6.0.9",
"Microsoft.EntityFrameworkCore.SqlServer": "6.0.9",
+ "Microsoft.Extensions.Hosting": "6.0.1",
"Microsoft.VisualStudio.Web.CodeGeneration.Design": "6.0.8",
"Npgsql.EntityFrameworkCore.PostgreSQL": "6.0.6",
"Swashbuckle.AspNetCore": "6.2.3"
@@ -78,7 +79,7 @@
"System.Reflection.Metadata": "5.0.0",
"System.Security.Principal.Windows": "4.7.0",
"System.Text.Encoding.CodePages": "4.7.0",
- "System.Text.Json": "5.0.2",
+ "System.Text.Json": "6.0.0",
"System.Threading.Tasks.Dataflow": "4.9.0"
}
},
@@ -727,7 +728,7 @@
"Microsoft.Build.Framework": "17.0.0",
"Microsoft.CodeAnalysis.Common": "4.0.0",
"Microsoft.CodeAnalysis.Workspaces.Common": "4.0.0",
- "System.Text.Json": "5.0.2"
+ "System.Text.Json": "6.0.0"
},
"runtime": {
"lib/netcoreapp3.1/Microsoft.CodeAnalysis.Workspaces.MSBuild.dll": {
@@ -954,11 +955,72 @@
}
}
},
+ "Microsoft.Extensions.Configuration/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.Configuration.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Primitives": "6.0.0"
+ }
+ },
"Microsoft.Extensions.Configuration.Abstractions/6.0.0": {
"dependencies": {
"Microsoft.Extensions.Primitives": "6.0.0"
}
},
+ "Microsoft.Extensions.Configuration.Binder/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.Configuration.Abstractions": "6.0.0"
+ }
+ },
+ "Microsoft.Extensions.Configuration.CommandLine/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.Configuration": "6.0.0",
+ "Microsoft.Extensions.Configuration.Abstractions": "6.0.0"
+ }
+ },
+ "Microsoft.Extensions.Configuration.EnvironmentVariables/6.0.1": {
+ "dependencies": {
+ "Microsoft.Extensions.Configuration": "6.0.0",
+ "Microsoft.Extensions.Configuration.Abstractions": "6.0.0"
+ },
+ "runtime": {
+ "lib/netstandard2.0/Microsoft.Extensions.Configuration.EnvironmentVariables.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.222.6406"
+ }
+ }
+ },
+ "Microsoft.Extensions.Configuration.FileExtensions/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.Configuration": "6.0.0",
+ "Microsoft.Extensions.Configuration.Abstractions": "6.0.0",
+ "Microsoft.Extensions.FileProviders.Abstractions": "6.0.0",
+ "Microsoft.Extensions.FileProviders.Physical": "6.0.0",
+ "Microsoft.Extensions.Primitives": "6.0.0"
+ }
+ },
+ "Microsoft.Extensions.Configuration.Json/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.Configuration": "6.0.0",
+ "Microsoft.Extensions.Configuration.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Configuration.FileExtensions": "6.0.0",
+ "Microsoft.Extensions.FileProviders.Abstractions": "6.0.0",
+ "System.Text.Json": "6.0.0"
+ }
+ },
+ "Microsoft.Extensions.Configuration.UserSecrets/6.0.1": {
+ "dependencies": {
+ "Microsoft.Extensions.Configuration.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Configuration.Json": "6.0.0",
+ "Microsoft.Extensions.FileProviders.Abstractions": "6.0.0",
+ "Microsoft.Extensions.FileProviders.Physical": "6.0.0"
+ },
+ "runtime": {
+ "lib/netstandard2.0/Microsoft.Extensions.Configuration.UserSecrets.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.222.6406"
+ }
+ }
+ },
"Microsoft.Extensions.DependencyInjection/6.0.0": {
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
@@ -966,6 +1028,57 @@
}
},
"Microsoft.Extensions.DependencyInjection.Abstractions/6.0.0": {},
+ "Microsoft.Extensions.FileProviders.Abstractions/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.Primitives": "6.0.0"
+ }
+ },
+ "Microsoft.Extensions.FileProviders.Physical/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.FileProviders.Abstractions": "6.0.0",
+ "Microsoft.Extensions.FileSystemGlobbing": "6.0.0",
+ "Microsoft.Extensions.Primitives": "6.0.0"
+ }
+ },
+ "Microsoft.Extensions.FileSystemGlobbing/6.0.0": {},
+ "Microsoft.Extensions.Hosting/6.0.1": {
+ "dependencies": {
+ "Microsoft.Extensions.Configuration": "6.0.0",
+ "Microsoft.Extensions.Configuration.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Configuration.Binder": "6.0.0",
+ "Microsoft.Extensions.Configuration.CommandLine": "6.0.0",
+ "Microsoft.Extensions.Configuration.EnvironmentVariables": "6.0.1",
+ "Microsoft.Extensions.Configuration.FileExtensions": "6.0.0",
+ "Microsoft.Extensions.Configuration.Json": "6.0.0",
+ "Microsoft.Extensions.Configuration.UserSecrets": "6.0.1",
+ "Microsoft.Extensions.DependencyInjection": "6.0.0",
+ "Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
+ "Microsoft.Extensions.FileProviders.Abstractions": "6.0.0",
+ "Microsoft.Extensions.FileProviders.Physical": "6.0.0",
+ "Microsoft.Extensions.Hosting.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Logging": "6.0.0",
+ "Microsoft.Extensions.Logging.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Logging.Configuration": "6.0.0",
+ "Microsoft.Extensions.Logging.Console": "6.0.0",
+ "Microsoft.Extensions.Logging.Debug": "6.0.0",
+ "Microsoft.Extensions.Logging.EventLog": "6.0.0",
+ "Microsoft.Extensions.Logging.EventSource": "6.0.0",
+ "Microsoft.Extensions.Options": "6.0.0"
+ },
+ "runtime": {
+ "lib/net6.0/Microsoft.Extensions.Hosting.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.222.6406"
+ }
+ }
+ },
+ "Microsoft.Extensions.Hosting.Abstractions/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.Configuration.Abstractions": "6.0.0",
+ "Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
+ "Microsoft.Extensions.FileProviders.Abstractions": "6.0.0"
+ }
+ },
"Microsoft.Extensions.Logging/6.0.0": {
"dependencies": {
"Microsoft.Extensions.DependencyInjection": "6.0.0",
@@ -976,12 +1089,70 @@
}
},
"Microsoft.Extensions.Logging.Abstractions/6.0.0": {},
+ "Microsoft.Extensions.Logging.Configuration/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.Configuration": "6.0.0",
+ "Microsoft.Extensions.Configuration.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Configuration.Binder": "6.0.0",
+ "Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Logging": "6.0.0",
+ "Microsoft.Extensions.Logging.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Options": "6.0.0",
+ "Microsoft.Extensions.Options.ConfigurationExtensions": "6.0.0"
+ }
+ },
+ "Microsoft.Extensions.Logging.Console/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Logging": "6.0.0",
+ "Microsoft.Extensions.Logging.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Logging.Configuration": "6.0.0",
+ "Microsoft.Extensions.Options": "6.0.0",
+ "System.Text.Json": "6.0.0"
+ }
+ },
+ "Microsoft.Extensions.Logging.Debug/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Logging": "6.0.0",
+ "Microsoft.Extensions.Logging.Abstractions": "6.0.0"
+ }
+ },
+ "Microsoft.Extensions.Logging.EventLog/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Logging": "6.0.0",
+ "Microsoft.Extensions.Logging.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Options": "6.0.0",
+ "System.Diagnostics.EventLog": "6.0.0"
+ }
+ },
+ "Microsoft.Extensions.Logging.EventSource/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Logging": "6.0.0",
+ "Microsoft.Extensions.Logging.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Options": "6.0.0",
+ "Microsoft.Extensions.Primitives": "6.0.0",
+ "System.Runtime.CompilerServices.Unsafe": "6.0.0",
+ "System.Text.Json": "6.0.0"
+ }
+ },
"Microsoft.Extensions.Options/6.0.0": {
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
"Microsoft.Extensions.Primitives": "6.0.0"
}
},
+ "Microsoft.Extensions.Options.ConfigurationExtensions/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.Configuration.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Configuration.Binder": "6.0.0",
+ "Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Options": "6.0.0",
+ "Microsoft.Extensions.Primitives": "6.0.0"
+ }
+ },
"Microsoft.Extensions.Primitives/6.0.0": {
"dependencies": {
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
@@ -1678,6 +1849,7 @@
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
}
},
+ "System.Diagnostics.EventLog/6.0.0": {},
"System.Diagnostics.Tools/4.3.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "3.1.0",
@@ -2195,7 +2367,17 @@
"System.Text.Encoding": "4.3.0"
}
},
- "System.Text.Json/5.0.2": {},
+ "System.Text.Encodings.Web/6.0.0": {
+ "dependencies": {
+ "System.Runtime.CompilerServices.Unsafe": "6.0.0"
+ }
+ },
+ "System.Text.Json/6.0.0": {
+ "dependencies": {
+ "System.Runtime.CompilerServices.Unsafe": "6.0.0",
+ "System.Text.Encodings.Web": "6.0.0"
+ }
+ },
"System.Text.RegularExpressions/4.3.0": {
"dependencies": {
"System.Runtime": "4.3.0"
@@ -2551,6 +2733,13 @@
"path": "microsoft.extensions.caching.memory/6.0.1",
"hashPath": "microsoft.extensions.caching.memory.6.0.1.nupkg.sha512"
},
+ "Microsoft.Extensions.Configuration/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-tq2wXyh3fL17EMF2bXgRhU7JrbO3on93MRKYxzz4JzzvuGSA1l0W3GI9/tl8EO89TH+KWEymP7bcFway6z9fXg==",
+ "path": "microsoft.extensions.configuration/6.0.0",
+ "hashPath": "microsoft.extensions.configuration.6.0.0.nupkg.sha512"
+ },
"Microsoft.Extensions.Configuration.Abstractions/6.0.0": {
"type": "package",
"serviceable": true,
@@ -2558,6 +2747,48 @@
"path": "microsoft.extensions.configuration.abstractions/6.0.0",
"hashPath": "microsoft.extensions.configuration.abstractions.6.0.0.nupkg.sha512"
},
+ "Microsoft.Extensions.Configuration.Binder/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-b3ErKzND8LIC7o08QAVlKfaEIYEvLJbtmVbFZVBRXeu9YkKfSSzLZfR1SUfQPBIy9mKLhEtJgGYImkcMNaKE0A==",
+ "path": "microsoft.extensions.configuration.binder/6.0.0",
+ "hashPath": "microsoft.extensions.configuration.binder.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.Configuration.CommandLine/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-3nL1qCkZ1Oxx14ZTzgo4MmlO7tso7F+TtMZAY2jUAtTLyAcDp+EDjk3RqafoKiNaePyPvvlleEcBxh3b2Hzl1g==",
+ "path": "microsoft.extensions.configuration.commandline/6.0.0",
+ "hashPath": "microsoft.extensions.configuration.commandline.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.Configuration.EnvironmentVariables/6.0.1": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-pnyXV1LFOsYjGveuC07xp0YHIyGq7jRq5Ncb5zrrIieMLWVwgMyYxcOH0jTnBedDT4Gh1QinSqsjqzcieHk1og==",
+ "path": "microsoft.extensions.configuration.environmentvariables/6.0.1",
+ "hashPath": "microsoft.extensions.configuration.environmentvariables.6.0.1.nupkg.sha512"
+ },
+ "Microsoft.Extensions.Configuration.FileExtensions/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-V4Dth2cYMZpw3HhGw9XUDIijpI6gN+22LDt0AhufIgOppCUfpWX4483OmN+dFXRJkJLc8Tv0Q8QK+1ingT2+KQ==",
+ "path": "microsoft.extensions.configuration.fileextensions/6.0.0",
+ "hashPath": "microsoft.extensions.configuration.fileextensions.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.Configuration.Json/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-GJGery6QytCzS/BxJ96klgG9in3uH26KcUBbiVG/coNDXCRq6LGVVlUT4vXq34KPuM+R2av+LeYdX9h4IZOCUg==",
+ "path": "microsoft.extensions.configuration.json/6.0.0",
+ "hashPath": "microsoft.extensions.configuration.json.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.Configuration.UserSecrets/6.0.1": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-Fy8yr4V6obi7ZxvKYI1i85jqtwMq8tqyxQVZpRSkgeA8enqy/KvBIMdcuNdznlxQMZa72mvbHqb7vbg4Pyx95w==",
+ "path": "microsoft.extensions.configuration.usersecrets/6.0.1",
+ "hashPath": "microsoft.extensions.configuration.usersecrets.6.0.1.nupkg.sha512"
+ },
"Microsoft.Extensions.DependencyInjection/6.0.0": {
"type": "package",
"serviceable": true,
@@ -2572,6 +2803,41 @@
"path": "microsoft.extensions.dependencyinjection.abstractions/6.0.0",
"hashPath": "microsoft.extensions.dependencyinjection.abstractions.6.0.0.nupkg.sha512"
},
+ "Microsoft.Extensions.FileProviders.Abstractions/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-0pd4/fho0gC12rQswaGQxbU34jOS1TPS8lZPpkFCH68ppQjHNHYle9iRuHeev1LhrJ94YPvzcRd8UmIuFk23Qw==",
+ "path": "microsoft.extensions.fileproviders.abstractions/6.0.0",
+ "hashPath": "microsoft.extensions.fileproviders.abstractions.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.FileProviders.Physical/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-QvkL7l0nM8udt3gfyu0Vw8bbCXblxaKOl7c2oBfgGy4LCURRaL9XWZX1FWJrQc43oMokVneVxH38iz+bY1sbhg==",
+ "path": "microsoft.extensions.fileproviders.physical/6.0.0",
+ "hashPath": "microsoft.extensions.fileproviders.physical.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.FileSystemGlobbing/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-ip8jnL1aPiaPeKINCqaTEbvBFDmVx9dXQEBZ2HOBRXPD1eabGNqP/bKlsIcp7U2lGxiXd5xIhoFcmY8nM4Hdiw==",
+ "path": "microsoft.extensions.filesystemglobbing/6.0.0",
+ "hashPath": "microsoft.extensions.filesystemglobbing.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.Hosting/6.0.1": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-hbmizc9KPWOacLU8Z8YMaBG6KWdZFppczYV/KwnPGU/8xebWxQxdDeJmLOgg968prb7g2oQgnp6JVLX6lgby8g==",
+ "path": "microsoft.extensions.hosting/6.0.1",
+ "hashPath": "microsoft.extensions.hosting.6.0.1.nupkg.sha512"
+ },
+ "Microsoft.Extensions.Hosting.Abstractions/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-GcT5l2CYXL6Sa27KCSh0TixsRfADUgth+ojQSD5EkzisZxmGFh7CwzkcYuGwvmXLjr27uWRNrJ2vuuEjMhU05Q==",
+ "path": "microsoft.extensions.hosting.abstractions/6.0.0",
+ "hashPath": "microsoft.extensions.hosting.abstractions.6.0.0.nupkg.sha512"
+ },
"Microsoft.Extensions.Logging/6.0.0": {
"type": "package",
"serviceable": true,
@@ -2586,6 +2852,41 @@
"path": "microsoft.extensions.logging.abstractions/6.0.0",
"hashPath": "microsoft.extensions.logging.abstractions.6.0.0.nupkg.sha512"
},
+ "Microsoft.Extensions.Logging.Configuration/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-ZDskjagmBAbv+K8rYW9VhjPplhbOE63xUD0DiuydZJwt15dRyoqicYklLd86zzeintUc7AptDkHn+YhhYkYo8A==",
+ "path": "microsoft.extensions.logging.configuration/6.0.0",
+ "hashPath": "microsoft.extensions.logging.configuration.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.Logging.Console/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-gsqKzOEdsvq28QiXFxagmn1oRB9GeI5GgYCkoybZtQA0IUb7QPwf1WmN3AwJeNIsadTvIFQCiVK0OVIgKfOBGg==",
+ "path": "microsoft.extensions.logging.console/6.0.0",
+ "hashPath": "microsoft.extensions.logging.console.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.Logging.Debug/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-M9g/JixseSZATJE9tcMn9uzoD4+DbSglivFqVx8YkRJ7VVPmnvCEbOZ0AAaxsL1EKyI4cz07DXOOJExxNsUOHw==",
+ "path": "microsoft.extensions.logging.debug/6.0.0",
+ "hashPath": "microsoft.extensions.logging.debug.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.Logging.EventLog/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-rlo0RxlMd0WtLG3CHI0qOTp6fFn7MvQjlrCjucA31RqmiMFCZkF8CHNbe8O7tbBIyyoLGWB1he9CbaA5iyHthg==",
+ "path": "microsoft.extensions.logging.eventlog/6.0.0",
+ "hashPath": "microsoft.extensions.logging.eventlog.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.Logging.EventSource/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-BeDyyqt7nkm/nr+Gdk+L8n1tUT/u33VkbXAOesgYSNsxDM9hJ1NOBGoZfj9rCbeD2+9myElI6JOVVFmnzgeWQA==",
+ "path": "microsoft.extensions.logging.eventsource/6.0.0",
+ "hashPath": "microsoft.extensions.logging.eventsource.6.0.0.nupkg.sha512"
+ },
"Microsoft.Extensions.Options/6.0.0": {
"type": "package",
"serviceable": true,
@@ -2593,6 +2894,13 @@
"path": "microsoft.extensions.options/6.0.0",
"hashPath": "microsoft.extensions.options.6.0.0.nupkg.sha512"
},
+ "Microsoft.Extensions.Options.ConfigurationExtensions/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-bXWINbTn0vC0FYc9GaQTISbxhQLAMrvtbuvD9N6JelEaIS/Pr62wUCinrq5bf1WRBGczt1v4wDhxFtVFNcMdUQ==",
+ "path": "microsoft.extensions.options.configurationextensions/6.0.0",
+ "hashPath": "microsoft.extensions.options.configurationextensions.6.0.0.nupkg.sha512"
+ },
"Microsoft.Extensions.Primitives/6.0.0": {
"type": "package",
"serviceable": true,
@@ -3083,6 +3391,13 @@
"path": "system.diagnostics.diagnosticsource/6.0.0",
"hashPath": "system.diagnostics.diagnosticsource.6.0.0.nupkg.sha512"
},
+ "System.Diagnostics.EventLog/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-lcyUiXTsETK2ALsZrX+nWuHSIQeazhqPphLfaRxzdGaG93+0kELqpgEHtwWOlQe7+jSFnKwaCAgL4kjeZCQJnw==",
+ "path": "system.diagnostics.eventlog/6.0.0",
+ "hashPath": "system.diagnostics.eventlog.6.0.0.nupkg.sha512"
+ },
"System.Diagnostics.Tools/4.3.0": {
"type": "package",
"serviceable": true,
@@ -3461,12 +3776,19 @@
"path": "system.text.encoding.extensions/4.3.0",
"hashPath": "system.text.encoding.extensions.4.3.0.nupkg.sha512"
},
- "System.Text.Json/5.0.2": {
+ "System.Text.Encodings.Web/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-Vg8eB5Tawm1IFqj4TVK1czJX89rhFxJo9ELqc/Eiq0eXy13RK00eubyU6TJE6y+GQXjyV5gSfiewDUZjQgSE0w==",
+ "path": "system.text.encodings.web/6.0.0",
+ "hashPath": "system.text.encodings.web.6.0.0.nupkg.sha512"
+ },
+ "System.Text.Json/6.0.0": {
"type": "package",
"serviceable": true,
- "sha512": "sha512-I47dVIGiV6SfAyppphxqupertT/5oZkYLDCX6vC3HpOI4ZLjyoKAreUoem2ie6G0RbRuFrlqz/PcTQjfb2DOfQ==",
- "path": "system.text.json/5.0.2",
- "hashPath": "system.text.json.5.0.2.nupkg.sha512"
+ "sha512": "sha512-zaJsHfESQvJ11vbXnNlkrR46IaMULk/gHxYsJphzSF+07kTjPHv+Oc14w6QEOfo3Q4hqLJgStUaYB9DBl0TmWg==",
+ "path": "system.text.json/6.0.0",
+ "hashPath": "system.text.json.6.0.0.nupkg.sha512"
},
"System.Text.RegularExpressions/4.3.0": {
"type": "package",
diff --git a/requests.query b/requests.query
new file mode 100644
index 0000000..e311a79
--- /dev/null
+++ b/requests.query
@@ -0,0 +1 @@
+GET http://localhost:5218/api/authors \ No newline at end of file
diff --git a/wwwroot/Log.txt b/wwwroot/Log.txt
new file mode 100644
index 0000000..8e493c4
--- /dev/null
+++ b/wwwroot/Log.txt
@@ -0,0 +1,4 @@
+Executing task
+25/10/2022 08:42:33
+Stopping task...
+