diff --git a/Web/Azaion.Web/Azaion.Web.sln b/Web/Azaion.Web/Azaion.Web.sln new file mode 100644 index 0000000..29de87a --- /dev/null +++ b/Web/Azaion.Web/Azaion.Web.sln @@ -0,0 +1,16 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azaion.WebService", "Azaion.WebService\Azaion.WebService.csproj", "{1D56907A-00A6-4D8E-88C0-929747B7FB67}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {1D56907A-00A6-4D8E-88C0-929747B7FB67}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1D56907A-00A6-4D8E-88C0-929747B7FB67}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1D56907A-00A6-4D8E-88C0-929747B7FB67}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1D56907A-00A6-4D8E-88C0-929747B7FB67}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/Web/Azaion.Web/Azaion.WebService/Azaion.WebService.csproj b/Web/Azaion.Web/Azaion.WebService/Azaion.WebService.csproj new file mode 100644 index 0000000..48e39a5 --- /dev/null +++ b/Web/Azaion.Web/Azaion.WebService/Azaion.WebService.csproj @@ -0,0 +1,14 @@ + + + + net8.0 + enable + enable + + + + + + + + diff --git a/Web/Azaion.Web/Azaion.WebService/Azaion.WebService.http b/Web/Azaion.Web/Azaion.WebService/Azaion.WebService.http new file mode 100644 index 0000000..bcff1d4 --- /dev/null +++ b/Web/Azaion.Web/Azaion.WebService/Azaion.WebService.http @@ -0,0 +1,6 @@ +@Azaion.WebService_HostAddress = http://localhost:5275 + +GET {{Azaion.WebService_HostAddress}}/weatherforecast/ +Accept: application/json + +### diff --git a/Web/Azaion.Web/Azaion.WebService/Program.cs b/Web/Azaion.Web/Azaion.WebService/Program.cs new file mode 100644 index 0000000..161f695 --- /dev/null +++ b/Web/Azaion.Web/Azaion.WebService/Program.cs @@ -0,0 +1,44 @@ +var builder = WebApplication.CreateBuilder(args); + +// Add services to the container. +// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle +builder.Services.AddEndpointsApiExplorer(); +builder.Services.AddSwaggerGen(); + +var app = builder.Build(); + +// Configure the HTTP request pipeline. +if (app.Environment.IsDevelopment()) +{ + app.UseSwagger(); + app.UseSwaggerUI(); +} + +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") + .WithOpenApi(); + +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/Web/Azaion.Web/Azaion.WebService/Properties/launchSettings.json b/Web/Azaion.Web/Azaion.WebService/Properties/launchSettings.json new file mode 100644 index 0000000..ff72b58 --- /dev/null +++ b/Web/Azaion.Web/Azaion.WebService/Properties/launchSettings.json @@ -0,0 +1,41 @@ +{ + "$schema": "http://json.schemastore.org/launchsettings.json", + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:32310", + "sslPort": 44300 + } + }, + "profiles": { + "http": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "launchUrl": "swagger", + "applicationUrl": "http://localhost:5275", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "https": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "launchUrl": "swagger", + "applicationUrl": "https://localhost:7263;http://localhost:5275", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "launchUrl": "swagger", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/Web/Azaion.Web/Azaion.WebService/appsettings.Development.json b/Web/Azaion.Web/Azaion.WebService/appsettings.Development.json new file mode 100644 index 0000000..0c208ae --- /dev/null +++ b/Web/Azaion.Web/Azaion.WebService/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/Web/Azaion.Web/Azaion.WebService/appsettings.json b/Web/Azaion.Web/Azaion.WebService/appsettings.json new file mode 100644 index 0000000..10f68b8 --- /dev/null +++ b/Web/Azaion.Web/Azaion.WebService/appsettings.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*" +} diff --git a/Azaion.Annotator.Test/Azaion.Annotator.Test.csproj b/Windows/Azaion.Annotator.Test/Azaion.Annotator.Test.csproj similarity index 100% rename from Azaion.Annotator.Test/Azaion.Annotator.Test.csproj rename to Windows/Azaion.Annotator.Test/Azaion.Annotator.Test.csproj diff --git a/Azaion.Annotator.Test/DictTest.cs b/Windows/Azaion.Annotator.Test/DictTest.cs similarity index 100% rename from Azaion.Annotator.Test/DictTest.cs rename to Windows/Azaion.Annotator.Test/DictTest.cs diff --git a/Azaion.Annotator.sln b/Windows/Azaion.Annotator.sln similarity index 100% rename from Azaion.Annotator.sln rename to Windows/Azaion.Annotator.sln diff --git a/Azaion.Annotator/App.xaml b/Windows/Azaion.Annotator/App.xaml similarity index 100% rename from Azaion.Annotator/App.xaml rename to Windows/Azaion.Annotator/App.xaml diff --git a/Azaion.Annotator/App.xaml.cs b/Windows/Azaion.Annotator/App.xaml.cs similarity index 100% rename from Azaion.Annotator/App.xaml.cs rename to Windows/Azaion.Annotator/App.xaml.cs diff --git a/Azaion.Annotator/AssemblyInfo.cs b/Windows/Azaion.Annotator/AssemblyInfo.cs similarity index 100% rename from Azaion.Annotator/AssemblyInfo.cs rename to Windows/Azaion.Annotator/AssemblyInfo.cs diff --git a/Azaion.Annotator/Azaion.Annotator.csproj b/Windows/Azaion.Annotator/Azaion.Annotator.csproj similarity index 100% rename from Azaion.Annotator/Azaion.Annotator.csproj rename to Windows/Azaion.Annotator/Azaion.Annotator.csproj diff --git a/Azaion.Annotator/Controls/AnnotationControl.cs b/Windows/Azaion.Annotator/Controls/AnnotationControl.cs similarity index 100% rename from Azaion.Annotator/Controls/AnnotationControl.cs rename to Windows/Azaion.Annotator/Controls/AnnotationControl.cs diff --git a/Azaion.Annotator/Controls/CanvasEditor.cs b/Windows/Azaion.Annotator/Controls/CanvasEditor.cs similarity index 100% rename from Azaion.Annotator/Controls/CanvasEditor.cs rename to Windows/Azaion.Annotator/Controls/CanvasEditor.cs diff --git a/Azaion.Annotator/Controls/UpdatableProgressBar.cs b/Windows/Azaion.Annotator/Controls/UpdatableProgressBar.cs similarity index 100% rename from Azaion.Annotator/Controls/UpdatableProgressBar.cs rename to Windows/Azaion.Annotator/Controls/UpdatableProgressBar.cs diff --git a/Azaion.Annotator/DTO/AnnClassSelectedEvent.cs b/Windows/Azaion.Annotator/DTO/AnnClassSelectedEvent.cs similarity index 100% rename from Azaion.Annotator/DTO/AnnClassSelectedEvent.cs rename to Windows/Azaion.Annotator/DTO/AnnClassSelectedEvent.cs diff --git a/Azaion.Annotator/DTO/AnnotationClass.cs b/Windows/Azaion.Annotator/DTO/AnnotationClass.cs similarity index 100% rename from Azaion.Annotator/DTO/AnnotationClass.cs rename to Windows/Azaion.Annotator/DTO/AnnotationClass.cs diff --git a/Azaion.Annotator/DTO/AnnotationInfo.cs b/Windows/Azaion.Annotator/DTO/AnnotationInfo.cs similarity index 100% rename from Azaion.Annotator/DTO/AnnotationInfo.cs rename to Windows/Azaion.Annotator/DTO/AnnotationInfo.cs diff --git a/Azaion.Annotator/DTO/Config.cs b/Windows/Azaion.Annotator/DTO/Config.cs similarity index 100% rename from Azaion.Annotator/DTO/Config.cs rename to Windows/Azaion.Annotator/DTO/Config.cs diff --git a/Azaion.Annotator/DTO/FormState.cs b/Windows/Azaion.Annotator/DTO/FormState.cs similarity index 100% rename from Azaion.Annotator/DTO/FormState.cs rename to Windows/Azaion.Annotator/DTO/FormState.cs diff --git a/Azaion.Annotator/DTO/MediatrEvents.cs b/Windows/Azaion.Annotator/DTO/MediatrEvents.cs similarity index 100% rename from Azaion.Annotator/DTO/MediatrEvents.cs rename to Windows/Azaion.Annotator/DTO/MediatrEvents.cs diff --git a/Azaion.Annotator/DTO/PlaybackControlEnum.cs b/Windows/Azaion.Annotator/DTO/PlaybackControlEnum.cs similarity index 100% rename from Azaion.Annotator/DTO/PlaybackControlEnum.cs rename to Windows/Azaion.Annotator/DTO/PlaybackControlEnum.cs diff --git a/Azaion.Annotator/DTO/SelectionState.cs b/Windows/Azaion.Annotator/DTO/SelectionState.cs similarity index 100% rename from Azaion.Annotator/DTO/SelectionState.cs rename to Windows/Azaion.Annotator/DTO/SelectionState.cs diff --git a/Azaion.Annotator/DTO/VideoFileInfo.cs b/Windows/Azaion.Annotator/DTO/VideoFileInfo.cs similarity index 100% rename from Azaion.Annotator/DTO/VideoFileInfo.cs rename to Windows/Azaion.Annotator/DTO/VideoFileInfo.cs diff --git a/Azaion.Annotator/Extensions/CanvasExtensions.cs b/Windows/Azaion.Annotator/Extensions/CanvasExtensions.cs similarity index 100% rename from Azaion.Annotator/Extensions/CanvasExtensions.cs rename to Windows/Azaion.Annotator/Extensions/CanvasExtensions.cs diff --git a/Azaion.Annotator/Extensions/ColorExtensions.cs b/Windows/Azaion.Annotator/Extensions/ColorExtensions.cs similarity index 100% rename from Azaion.Annotator/Extensions/ColorExtensions.cs rename to Windows/Azaion.Annotator/Extensions/ColorExtensions.cs diff --git a/Azaion.Annotator/Extensions/DataGridExtensions.cs b/Windows/Azaion.Annotator/Extensions/DataGridExtensions.cs similarity index 100% rename from Azaion.Annotator/Extensions/DataGridExtensions.cs rename to Windows/Azaion.Annotator/Extensions/DataGridExtensions.cs diff --git a/Azaion.Annotator/Extensions/DirectoryInfoExtensions.cs b/Windows/Azaion.Annotator/Extensions/DirectoryInfoExtensions.cs similarity index 100% rename from Azaion.Annotator/Extensions/DirectoryInfoExtensions.cs rename to Windows/Azaion.Annotator/Extensions/DirectoryInfoExtensions.cs diff --git a/Azaion.Annotator/Extensions/SynchronizeInvokeExtensions.cs b/Windows/Azaion.Annotator/Extensions/SynchronizeInvokeExtensions.cs similarity index 100% rename from Azaion.Annotator/Extensions/SynchronizeInvokeExtensions.cs rename to Windows/Azaion.Annotator/Extensions/SynchronizeInvokeExtensions.cs diff --git a/Azaion.Annotator/HelpTexts.cs b/Windows/Azaion.Annotator/HelpTexts.cs similarity index 100% rename from Azaion.Annotator/HelpTexts.cs rename to Windows/Azaion.Annotator/HelpTexts.cs diff --git a/Azaion.Annotator/HelpWindow.xaml b/Windows/Azaion.Annotator/HelpWindow.xaml similarity index 100% rename from Azaion.Annotator/HelpWindow.xaml rename to Windows/Azaion.Annotator/HelpWindow.xaml diff --git a/Azaion.Annotator/HelpWindow.xaml.cs b/Windows/Azaion.Annotator/HelpWindow.xaml.cs similarity index 100% rename from Azaion.Annotator/HelpWindow.xaml.cs rename to Windows/Azaion.Annotator/HelpWindow.xaml.cs diff --git a/Azaion.Annotator/MainWindow.xaml b/Windows/Azaion.Annotator/MainWindow.xaml similarity index 100% rename from Azaion.Annotator/MainWindow.xaml rename to Windows/Azaion.Annotator/MainWindow.xaml diff --git a/Azaion.Annotator/MainWindow.xaml.cs b/Windows/Azaion.Annotator/MainWindow.xaml.cs similarity index 100% rename from Azaion.Annotator/MainWindow.xaml.cs rename to Windows/Azaion.Annotator/MainWindow.xaml.cs diff --git a/Azaion.Annotator/PlayerControlHandler.cs b/Windows/Azaion.Annotator/PlayerControlHandler.cs similarity index 100% rename from Azaion.Annotator/PlayerControlHandler.cs rename to Windows/Azaion.Annotator/PlayerControlHandler.cs diff --git a/Azaion.Annotator/config.json b/Windows/Azaion.Annotator/config.json similarity index 100% rename from Azaion.Annotator/config.json rename to Windows/Azaion.Annotator/config.json diff --git a/Azaion.Annotator/logo.ico b/Windows/Azaion.Annotator/logo.ico similarity index 100% rename from Azaion.Annotator/logo.ico rename to Windows/Azaion.Annotator/logo.ico diff --git a/Azaion.Annotator/translations.json b/Windows/Azaion.Annotator/translations.json similarity index 100% rename from Azaion.Annotator/translations.json rename to Windows/Azaion.Annotator/translations.json diff --git a/README.md b/Windows/README.md similarity index 100% rename from README.md rename to Windows/README.md