From ea6dc04a4abee472e9055768e7de998474a215b3 Mon Sep 17 00:00:00 2001 From: Denis Nutiu Date: Sat, 21 Nov 2020 23:51:21 +0200 Subject: [PATCH] Delete NucuCar.Desktop and NucuCar.WebApi --- NucuCar.Desktop/App.xaml | 9 ---- NucuCar.Desktop/App.xaml.cs | 17 ------- NucuCar.Desktop/AssemblyInfo.cs | 10 ---- NucuCar.Desktop/MainWindow.xaml | 25 ---------- NucuCar.Desktop/MainWindow.xaml.cs | 28 ----------- NucuCar.Desktop/NucuCar.Desktop.csproj | 9 ---- .../Controllers/WeatherForecastController.cs | 39 --------------- NucuCar.WebApi/NucuCar.WebApi.csproj | 8 ---- NucuCar.WebApi/Program.cs | 23 --------- NucuCar.WebApi/Properties/launchSettings.json | 30 ------------ NucuCar.WebApi/Startup.cs | 48 ------------------- NucuCar.WebApi/WeatherForecast.cs | 15 ------ NucuCar.WebApi/appsettings.Development.json | 9 ---- NucuCar.WebApi/appsettings.json | 10 ---- 14 files changed, 280 deletions(-) delete mode 100644 NucuCar.Desktop/App.xaml delete mode 100644 NucuCar.Desktop/App.xaml.cs delete mode 100644 NucuCar.Desktop/AssemblyInfo.cs delete mode 100644 NucuCar.Desktop/MainWindow.xaml delete mode 100644 NucuCar.Desktop/MainWindow.xaml.cs delete mode 100644 NucuCar.Desktop/NucuCar.Desktop.csproj delete mode 100644 NucuCar.WebApi/Controllers/WeatherForecastController.cs delete mode 100644 NucuCar.WebApi/NucuCar.WebApi.csproj delete mode 100644 NucuCar.WebApi/Program.cs delete mode 100644 NucuCar.WebApi/Properties/launchSettings.json delete mode 100644 NucuCar.WebApi/Startup.cs delete mode 100644 NucuCar.WebApi/WeatherForecast.cs delete mode 100644 NucuCar.WebApi/appsettings.Development.json delete mode 100644 NucuCar.WebApi/appsettings.json diff --git a/NucuCar.Desktop/App.xaml b/NucuCar.Desktop/App.xaml deleted file mode 100644 index 72ee0f2..0000000 --- a/NucuCar.Desktop/App.xaml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - diff --git a/NucuCar.Desktop/App.xaml.cs b/NucuCar.Desktop/App.xaml.cs deleted file mode 100644 index 5b68e41..0000000 --- a/NucuCar.Desktop/App.xaml.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Configuration; -using System.Data; -using System.Linq; -using System.Threading.Tasks; -using System.Windows; - -namespace NucuCar.Desktop -{ - /// - /// Interaction logic for App.xaml - /// - public partial class App : Application - { - } -} \ No newline at end of file diff --git a/NucuCar.Desktop/AssemblyInfo.cs b/NucuCar.Desktop/AssemblyInfo.cs deleted file mode 100644 index 4a05c7d..0000000 --- a/NucuCar.Desktop/AssemblyInfo.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System.Windows; - -[assembly: ThemeInfo( - ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located - //(used if a resource is not found in the page, - // or application resource dictionaries) - ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located - //(used if a resource is not found in the page, - // app, or any theme specific resource dictionaries) -)] \ No newline at end of file diff --git a/NucuCar.Desktop/MainWindow.xaml b/NucuCar.Desktop/MainWindow.xaml deleted file mode 100644 index 3f9f045..0000000 --- a/NucuCar.Desktop/MainWindow.xaml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/NucuCar.Desktop/MainWindow.xaml.cs b/NucuCar.Desktop/MainWindow.xaml.cs deleted file mode 100644 index 619b4a5..0000000 --- a/NucuCar.Desktop/MainWindow.xaml.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Navigation; -using System.Windows.Shapes; - -namespace NucuCar.Desktop -{ - /// - /// Interaction logic for MainWindow.xaml - /// - public partial class MainWindow : Window - { - public MainWindow() - { - InitializeComponent(); - } - } -} \ No newline at end of file diff --git a/NucuCar.Desktop/NucuCar.Desktop.csproj b/NucuCar.Desktop/NucuCar.Desktop.csproj deleted file mode 100644 index fc459e6..0000000 --- a/NucuCar.Desktop/NucuCar.Desktop.csproj +++ /dev/null @@ -1,9 +0,0 @@ - - - - WinExe - netcoreapp3.1 - true - - - \ No newline at end of file diff --git a/NucuCar.WebApi/Controllers/WeatherForecastController.cs b/NucuCar.WebApi/Controllers/WeatherForecastController.cs deleted file mode 100644 index da04865..0000000 --- a/NucuCar.WebApi/Controllers/WeatherForecastController.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Logging; - -namespace NucuCar.WebApi.Controllers -{ - [ApiController] - [Route("[controller]")] - public class WeatherForecastController : ControllerBase - { - private static readonly string[] Summaries = new[] - { - "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" - }; - - private readonly ILogger _logger; - - public WeatherForecastController(ILogger logger) - { - _logger = logger; - } - - [HttpGet] - public IEnumerable Get() - { - var rng = new Random(); - return Enumerable.Range(1, 5).Select(index => new WeatherForecast - { - Date = DateTime.Now.AddDays(index), - TemperatureC = rng.Next(-20, 55), - Summary = Summaries[rng.Next(Summaries.Length)] - }) - .ToArray(); - } - } -} \ No newline at end of file diff --git a/NucuCar.WebApi/NucuCar.WebApi.csproj b/NucuCar.WebApi/NucuCar.WebApi.csproj deleted file mode 100644 index 68ded6d..0000000 --- a/NucuCar.WebApi/NucuCar.WebApi.csproj +++ /dev/null @@ -1,8 +0,0 @@ - - - - netcoreapp3.1 - - - - diff --git a/NucuCar.WebApi/Program.cs b/NucuCar.WebApi/Program.cs deleted file mode 100644 index 918101b..0000000 --- a/NucuCar.WebApi/Program.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Logging; - -namespace NucuCar.WebApi -{ - public class Program - { - public static void Main(string[] args) - { - CreateHostBuilder(args).Build().Run(); - } - - public static IHostBuilder CreateHostBuilder(string[] args) => - Host.CreateDefaultBuilder(args) - .ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup(); }); - } -} \ No newline at end of file diff --git a/NucuCar.WebApi/Properties/launchSettings.json b/NucuCar.WebApi/Properties/launchSettings.json deleted file mode 100644 index a7f8f4c..0000000 --- a/NucuCar.WebApi/Properties/launchSettings.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "$schema": "http://json.schemastore.org/launchsettings.json", - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:3724", - "sslPort": 44304 - } - }, - "profiles": { - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "launchUrl": "weatherforecast", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "NucuCar.WebApi": { - "commandName": "Project", - "launchBrowser": true, - "launchUrl": "weatherforecast", - "applicationUrl": "https://localhost:5001;http://localhost:5000", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - } - } -} diff --git a/NucuCar.WebApi/Startup.cs b/NucuCar.WebApi/Startup.cs deleted file mode 100644 index a0446da..0000000 --- a/NucuCar.WebApi/Startup.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.HttpsPolicy; -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Logging; - -namespace NucuCar.WebApi -{ - public class Startup - { - public Startup(IConfiguration configuration) - { - Configuration = configuration; - } - - public IConfiguration Configuration { get; } - - // This method gets called by the runtime. Use this method to add services to the container. - public void ConfigureServices(IServiceCollection services) - { - services.AddControllers(); - } - - // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. - public void Configure(IApplicationBuilder app, IWebHostEnvironment env) - { - if (env.IsDevelopment()) - { - app.UseDeveloperExceptionPage(); - } - - app.UseHttpsRedirection(); - - app.UseRouting(); - - app.UseAuthorization(); - - app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); - } - } -} \ No newline at end of file diff --git a/NucuCar.WebApi/WeatherForecast.cs b/NucuCar.WebApi/WeatherForecast.cs deleted file mode 100644 index e904095..0000000 --- a/NucuCar.WebApi/WeatherForecast.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; - -namespace NucuCar.WebApi -{ - public class WeatherForecast - { - public DateTime Date { get; set; } - - public int TemperatureC { get; set; } - - public int TemperatureF => 32 + (int) (TemperatureC / 0.5556); - - public string Summary { get; set; } - } -} \ No newline at end of file diff --git a/NucuCar.WebApi/appsettings.Development.json b/NucuCar.WebApi/appsettings.Development.json deleted file mode 100644 index 8983e0f..0000000 --- a/NucuCar.WebApi/appsettings.Development.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft": "Warning", - "Microsoft.Hosting.Lifetime": "Information" - } - } -} diff --git a/NucuCar.WebApi/appsettings.json b/NucuCar.WebApi/appsettings.json deleted file mode 100644 index d9d9a9b..0000000 --- a/NucuCar.WebApi/appsettings.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft": "Warning", - "Microsoft.Hosting.Lifetime": "Information" - } - }, - "AllowedHosts": "*" -}