From 365bc98215a35f51ea326a2e9596428269480162 Mon Sep 17 00:00:00 2001 From: BuzzLeclair Date: Fri, 28 Feb 2025 12:00:33 +0100 Subject: [PATCH] Premier push --- .idea/.idea.ldap-cesi/.idea/.gitignore | 13 +++++++ .idea/.idea.ldap-cesi/.idea/encodings.xml | 4 ++ .idea/.idea.ldap-cesi/.idea/indexLayout.xml | 8 ++++ .idea/.idea.ldap-cesi/.idea/misc.xml | 26 +++++++++++++ .idea/.idea.ldap-cesi/.idea/vcs.xml | 4 ++ ldap-cesi.sln | 16 ++++++++ ldap-cesi/.gitignore | 9 +++++ ldap-cesi/Program.cs | 41 +++++++++++++++++++++ ldap-cesi/Properties/launchSettings.json | 23 ++++++++++++ ldap-cesi/ldap-cesi.csproj | 14 +++++++ ldap-cesi/ldap-cesi.http | 6 +++ 11 files changed, 164 insertions(+) create mode 100644 .idea/.idea.ldap-cesi/.idea/.gitignore create mode 100644 .idea/.idea.ldap-cesi/.idea/encodings.xml create mode 100644 .idea/.idea.ldap-cesi/.idea/indexLayout.xml create mode 100644 .idea/.idea.ldap-cesi/.idea/misc.xml create mode 100644 .idea/.idea.ldap-cesi/.idea/vcs.xml create mode 100644 ldap-cesi.sln create mode 100644 ldap-cesi/.gitignore create mode 100644 ldap-cesi/Program.cs create mode 100644 ldap-cesi/Properties/launchSettings.json create mode 100644 ldap-cesi/ldap-cesi.csproj create mode 100644 ldap-cesi/ldap-cesi.http diff --git a/.idea/.idea.ldap-cesi/.idea/.gitignore b/.idea/.idea.ldap-cesi/.idea/.gitignore new file mode 100644 index 0000000..8700c2a --- /dev/null +++ b/.idea/.idea.ldap-cesi/.idea/.gitignore @@ -0,0 +1,13 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Rider ignored files +/modules.xml +/.idea.ldap-cesi.iml +/projectSettingsUpdater.xml +/contentModel.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/.idea.ldap-cesi/.idea/encodings.xml b/.idea/.idea.ldap-cesi/.idea/encodings.xml new file mode 100644 index 0000000..df87cf9 --- /dev/null +++ b/.idea/.idea.ldap-cesi/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/.idea.ldap-cesi/.idea/indexLayout.xml b/.idea/.idea.ldap-cesi/.idea/indexLayout.xml new file mode 100644 index 0000000..7b08163 --- /dev/null +++ b/.idea/.idea.ldap-cesi/.idea/indexLayout.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/.idea.ldap-cesi/.idea/misc.xml b/.idea/.idea.ldap-cesi/.idea/misc.xml new file mode 100644 index 0000000..0cfc445 --- /dev/null +++ b/.idea/.idea.ldap-cesi/.idea/misc.xml @@ -0,0 +1,26 @@ + + + {} + + + + + + Android Lint: Security + + + Code Coverage + + + HTML + + + + + AndroidLintBadHostnameVerifier + + + + + + \ No newline at end of file diff --git a/.idea/.idea.ldap-cesi/.idea/vcs.xml b/.idea/.idea.ldap-cesi/.idea/vcs.xml new file mode 100644 index 0000000..d843f34 --- /dev/null +++ b/.idea/.idea.ldap-cesi/.idea/vcs.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/ldap-cesi.sln b/ldap-cesi.sln new file mode 100644 index 0000000..4509d4e --- /dev/null +++ b/ldap-cesi.sln @@ -0,0 +1,16 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ldap-cesi", "ldap-cesi\ldap-cesi.csproj", "{0AE1CE6A-DF41-4377-92A9-80E130D27F8B}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {0AE1CE6A-DF41-4377-92A9-80E130D27F8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0AE1CE6A-DF41-4377-92A9-80E130D27F8B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0AE1CE6A-DF41-4377-92A9-80E130D27F8B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0AE1CE6A-DF41-4377-92A9-80E130D27F8B}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/ldap-cesi/.gitignore b/ldap-cesi/.gitignore new file mode 100644 index 0000000..3775ac8 --- /dev/null +++ b/ldap-cesi/.gitignore @@ -0,0 +1,9 @@ +bin/ +obj/ +/packages/ +riderModule.iml +/_ReSharper.Caches/ +appsettings.json +appsettings.Development.json +/.env +/logs \ No newline at end of file diff --git a/ldap-cesi/Program.cs b/ldap-cesi/Program.cs new file mode 100644 index 0000000..d5e0ef3 --- /dev/null +++ b/ldap-cesi/Program.cs @@ -0,0 +1,41 @@ +var builder = WebApplication.CreateBuilder(args); + +// Add services to the container. +// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi +builder.Services.AddOpenApi(); + +var app = builder.Build(); + +// Configure the HTTP request pipeline. +if (app.Environment.IsDevelopment()) +{ + app.MapOpenApi(); +} + +app.UseHttpsRedirection(); + +var summaries = new[] +{ + "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" +}; + +app.MapGet("/weatherforecast", () => + { + var forecast = Enumerable.Range(1, 5).Select(index => + new WeatherForecast + ( + DateOnly.FromDateTime(DateTime.Now.AddDays(index)), + Random.Shared.Next(-20, 55), + summaries[Random.Shared.Next(summaries.Length)] + )) + .ToArray(); + return forecast; + }) + .WithName("GetWeatherForecast"); + +app.Run(); + +record WeatherForecast(DateOnly Date, int TemperatureC, string? Summary) +{ + public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); +} \ No newline at end of file diff --git a/ldap-cesi/Properties/launchSettings.json b/ldap-cesi/Properties/launchSettings.json new file mode 100644 index 0000000..584f844 --- /dev/null +++ b/ldap-cesi/Properties/launchSettings.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://json.schemastore.org/launchsettings.json", + "profiles": { + "http": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": false, + "applicationUrl": "http://localhost:5080", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "https": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": false, + "applicationUrl": "https://localhost:7079;http://localhost:5080", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/ldap-cesi/ldap-cesi.csproj b/ldap-cesi/ldap-cesi.csproj new file mode 100644 index 0000000..ab3c826 --- /dev/null +++ b/ldap-cesi/ldap-cesi.csproj @@ -0,0 +1,14 @@ + + + + net9.0 + enable + enable + ldap_cesi + + + + + + + diff --git a/ldap-cesi/ldap-cesi.http b/ldap-cesi/ldap-cesi.http new file mode 100644 index 0000000..352c4f9 --- /dev/null +++ b/ldap-cesi/ldap-cesi.http @@ -0,0 +1,6 @@ +@ldap_cesi_HostAddress = http://localhost:5080 + +GET {{ldap_cesi_HostAddress}}/weatherforecast/ +Accept: application/json + +###