Browse Source

Initial Code Commit from Prasenjit

master
Satyendra Hari 3 years ago
commit
d07b888b62
82 changed files with 593183 additions and 0 deletions
  1. +25
    -0
      API/.dockerignore
  2. +25
    -0
      API/POCDistance.sln
  3. +66
    -0
      API/POCDistance/Controllers/DistanceController.cs
  4. +31
    -0
      API/POCDistance/DAL/DataSourceAdapter.cs
  5. +10
    -0
      API/POCDistance/DAL/IDataSourceAdapter.cs
  6. +199190
    -0
      API/POCDistance/DataSource/zip.json
  7. +189892
    -0
      API/POCDistance/DataSource/zip_to_lat_lon_North America.csv
  8. +22
    -0
      API/POCDistance/Dockerfile
  9. +15
    -0
      API/POCDistance/Models/DistanceModel.cs
  10. +13
    -0
      API/POCDistance/Models/ErrorModel.cs
  11. +14
    -0
      API/POCDistance/Models/LocationModel.cs
  12. +12
    -0
      API/POCDistance/Models/LocationModel1.cs
  13. +13
    -0
      API/POCDistance/Models/SecurityPolicy.cs
  14. +19
    -0
      API/POCDistance/POCDistance.csproj
  15. +10
    -0
      API/POCDistance/POCDistance.csproj.user
  16. +26
    -0
      API/POCDistance/Program.cs
  17. +38
    -0
      API/POCDistance/Properties/launchSettings.json
  18. +13
    -0
      API/POCDistance/Service/ILocationService.cs
  19. +80
    -0
      API/POCDistance/Service/LocationService.cs
  20. +89
    -0
      API/POCDistance/Startup.cs
  21. +44
    -0
      API/POCDistance/Util/CalculateDistance.cs
  22. +19
    -0
      API/POCDistance/Util/SessionExtensions.cs
  23. +9
    -0
      API/POCDistance/appsettings.Development.json
  24. +10
    -0
      API/POCDistance/appsettings.json
  25. BIN
      API/POCDistance/bin/Debug/net5.0/Microsoft.OpenApi.dll
  26. BIN
      API/POCDistance/bin/Debug/net5.0/Newtonsoft.Json.dll
  27. +2
    -0
      API/POCDistance/bin/Debug/net5.0/POCDistance.StaticWebAssets.xml
  28. +3579
    -0
      API/POCDistance/bin/Debug/net5.0/POCDistance.deps.json
  29. BIN
      API/POCDistance/bin/Debug/net5.0/POCDistance.dll
  30. BIN
      API/POCDistance/bin/Debug/net5.0/POCDistance.exe
  31. BIN
      API/POCDistance/bin/Debug/net5.0/POCDistance.pdb
  32. +8
    -0
      API/POCDistance/bin/Debug/net5.0/POCDistance.runtimeconfig.dev.json
  33. +13
    -0
      API/POCDistance/bin/Debug/net5.0/POCDistance.runtimeconfig.json
  34. BIN
      API/POCDistance/bin/Debug/net5.0/Swashbuckle.AspNetCore.Swagger.dll
  35. BIN
      API/POCDistance/bin/Debug/net5.0/Swashbuckle.AspNetCore.SwaggerGen.dll
  36. BIN
      API/POCDistance/bin/Debug/net5.0/Swashbuckle.AspNetCore.SwaggerUI.dll
  37. +9
    -0
      API/POCDistance/bin/Debug/net5.0/appsettings.Development.json
  38. +10
    -0
      API/POCDistance/bin/Debug/net5.0/appsettings.json
  39. BIN
      API/POCDistance/bin/Debug/net5.0/ref/POCDistance.dll
  40. +199190
    -0
      API/POCDistance/bin/Debug/net5.0/zip.json
  41. +1
    -0
      API/POCDistance/obj/Container/AbsoluteOutputAssemblyPath.cache
  42. +1
    -0
      API/POCDistance/obj/Container/AdditionalProbingPaths.cache
  43. +0
    -0
      API/POCDistance/obj/Container/ContainerCreationResult.cache
  44. +1
    -0
      API/POCDistance/obj/Container/ContainerDevelopmentMode.cache
  45. +0
    -0
      API/POCDistance/obj/Container/ContainerId.cache
  46. +0
    -0
      API/POCDistance/obj/Container/ContainerName.cache
  47. +1
    -0
      API/POCDistance/obj/Container/ContainerOperatingSystemFlavor.cache
  48. +0
    -0
      API/POCDistance/obj/Container/ContainerRunContext.cache
  49. +0
    -0
      API/POCDistance/obj/Container/DebuggeeArguments.cache
  50. +0
    -0
      API/POCDistance/obj/Container/DebuggeeKillProcessCommand.cache
  51. +0
    -0
      API/POCDistance/obj/Container/DebuggeeProgram.cache
  52. +0
    -0
      API/POCDistance/obj/Container/DebuggeeWorkingDirectory.cache
  53. +0
    -0
      API/POCDistance/obj/Container/FastModeProjectMountDirectory.cache
  54. +1
    -0
      API/POCDistance/obj/Container/ImageBuildContext.cache
  55. +1
    -0
      API/POCDistance/obj/Container/ImageId.cache
  56. +1
    -0
      API/POCDistance/obj/Container/OperatingSystemName.cache
  57. +1
    -0
      API/POCDistance/obj/Container/TargetFramework.cache
  58. +1
    -0
      API/POCDistance/obj/Container/VsDbgScript.cache
  59. +0
    -0
      API/POCDistance/obj/Container/warmup.sem
  60. +4
    -0
      API/POCDistance/obj/Debug/net5.0/.NETCoreApp,Version=v5.0.AssemblyAttributes.cs
  61. +24
    -0
      API/POCDistance/obj/Debug/net5.0/POCDistance.AssemblyInfo.cs
  62. +1
    -0
      API/POCDistance/obj/Debug/net5.0/POCDistance.AssemblyInfoInputs.cache
  63. +10
    -0
      API/POCDistance/obj/Debug/net5.0/POCDistance.GeneratedMSBuildEditorConfig.editorconfig
  64. +0
    -0
      API/POCDistance/obj/Debug/net5.0/POCDistance.MvcApplicationPartsAssemblyInfo.cache
  65. +17
    -0
      API/POCDistance/obj/Debug/net5.0/POCDistance.MvcApplicationPartsAssemblyInfo.cs
  66. +1
    -0
      API/POCDistance/obj/Debug/net5.0/POCDistance.RazorTargetAssemblyInfo.cache
  67. BIN
      API/POCDistance/obj/Debug/net5.0/POCDistance.assets.cache
  68. BIN
      API/POCDistance/obj/Debug/net5.0/POCDistance.csproj.AssemblyReference.cache
  69. +1
    -0
      API/POCDistance/obj/Debug/net5.0/POCDistance.csproj.CoreCompileInputs.cache
  70. +92
    -0
      API/POCDistance/obj/Debug/net5.0/POCDistance.csproj.FileListAbsolute.txt
  71. BIN
      API/POCDistance/obj/Debug/net5.0/POCDistance.dll
  72. +1
    -0
      API/POCDistance/obj/Debug/net5.0/POCDistance.genruntimeconfig.cache
  73. BIN
      API/POCDistance/obj/Debug/net5.0/POCDistance.pdb
  74. BIN
      API/POCDistance/obj/Debug/net5.0/apphost.exe
  75. BIN
      API/POCDistance/obj/Debug/net5.0/ref/POCDistance.dll
  76. +0
    -0
      API/POCDistance/obj/Debug/net5.0/staticwebassets/POCDistance.StaticWebAssets.Manifest.cache
  77. +1
    -0
      API/POCDistance/obj/Debug/net5.0/staticwebassets/POCDistance.StaticWebAssets.xml
  78. +79
    -0
      API/POCDistance/obj/POCDistance.csproj.nuget.dgspec.json
  79. +27
    -0
      API/POCDistance/obj/POCDistance.csproj.nuget.g.props
  80. +10
    -0
      API/POCDistance/obj/POCDistance.csproj.nuget.g.targets
  81. +393
    -0
      API/POCDistance/obj/project.assets.json
  82. +17
    -0
      API/POCDistance/obj/project.nuget.cache

+ 25
- 0
API/.dockerignore View File

@ -0,0 +1,25 @@
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/azds.yaml
**/bin
**/charts
**/docker-compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md

+ 25
- 0
API/POCDistance.sln View File

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.31911.196
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "POCDistance", "POCDistance\POCDistance.csproj", "{F8345A57-17A9-4E96-BE2B-D995034E26CA}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F8345A57-17A9-4E96-BE2B-D995034E26CA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F8345A57-17A9-4E96-BE2B-D995034E26CA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F8345A57-17A9-4E96-BE2B-D995034E26CA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F8345A57-17A9-4E96-BE2B-D995034E26CA}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {1F070DF5-ED9D-48A1-9A55-B3AC5D5A6A02}
EndGlobalSection
EndGlobal

+ 66
- 0
API/POCDistance/Controllers/DistanceController.cs View File

@ -0,0 +1,66 @@
using Microsoft.AspNetCore.Cors;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using POCDistance.Models;
using POCDistance.Service;
using System;
using System.Net;
namespace POCDistance.Controllers
{
[EnableCors(SecurityPolicy.SiteCorsPolicy)]
[ApiController]
[Route("api/[controller]")]
public class DistanceController : ControllerBase
{
private readonly ILogger<DistanceController> _logger;
private readonly ILocationService _locationService;
public ErrorModel errorModel;
public DistanceController(ILogger<DistanceController> logger, ILocationService locationService)
{
_logger = logger;
_locationService = locationService;
}
[Route("GetDistance")]
[HttpGet]
public ActionResult GetDistance(string travelFrom, string travelTo)
{
var vResult = new ErrorModel();
var model = _locationService.GetDistanceByZipCode(travelFrom, travelTo);
if (!string.IsNullOrEmpty(model.Distance))
{
return Ok(model);
}
else
{
vResult.Status = Convert.ToInt32(HttpStatusCode.BadRequest);
vResult.Message = "Postal code(s) not found!";
return BadRequest(vResult);
}
}
[Route("GetZipCode")]
[HttpGet]
public ActionResult GetZipCode(string zipCode)
{
var vResult = new ErrorModel();
var model = _locationService.GetManyByZipCode(zipCode);
if (model.Count > 0)
{
return Ok(model);
}
else
{
vResult.Status = Convert.ToInt32(HttpStatusCode.BadRequest);
vResult.Message = "Zip code not found";
return BadRequest(vResult);
}
}
}
}

+ 31
- 0
API/POCDistance/DAL/DataSourceAdapter.cs View File

@ -0,0 +1,31 @@
using POCDistance.Models;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace POCDistance.DAL
{
public class DataSourceAdapter : IDataSourceAdapter
{
public List<LocationModel> GetLocations()
{
IEnumerable<string> strLocations = File.ReadLines(@"DataSource/zip_to_lat_lon_North America.csv");
var results = from str in strLocations
.Skip(1)
let tmp = str.Split(',')
select new LocationModel()
{
ZipCode = tmp.ElementAt(1),
City = tmp.ElementAt(2),
State = tmp.ElementAt(3),
Country = tmp.ElementAt(12),
Latitude = tmp.ElementAt(9),
Longitude = tmp.ElementAt(10)
};
return results.ToList();
}
}
}

+ 10
- 0
API/POCDistance/DAL/IDataSourceAdapter.cs View File

@ -0,0 +1,10 @@
using POCDistance.Models;
using System.Collections.Generic;
namespace POCDistance.DAL
{
public interface IDataSourceAdapter
{
public List<LocationModel> GetLocations();
}
}

+ 199190
- 0
API/POCDistance/DataSource/zip.json
File diff suppressed because it is too large
View File


+ 189892
- 0
API/POCDistance/DataSource/zip_to_lat_lon_North America.csv
File diff suppressed because it is too large
View File


+ 22
- 0
API/POCDistance/Dockerfile View File

@ -0,0 +1,22 @@
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
WORKDIR /src
COPY ["POCDistance/POCDistance.csproj", "POCDistance/"]
RUN dotnet restore "POCDistance/POCDistance.csproj"
COPY . .
WORKDIR "/src/POCDistance"
RUN dotnet build "POCDistance.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "POCDistance.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "POCDistance.dll"]

+ 15
- 0
API/POCDistance/Models/DistanceModel.cs View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace POCDistance.Models
{
public class DistanceModel
{
public string Distance { get; set; }
public string Unit { get; set; }
public string FromCity { get; set; }
public string ToCity { get; set; }
}
}

+ 13
- 0
API/POCDistance/Models/ErrorModel.cs View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace POCDistance.Models
{
public class ErrorModel
{
public int Status { get; set; }
public string Message { get; set; }
}
}

+ 14
- 0
API/POCDistance/Models/LocationModel.cs View File

@ -0,0 +1,14 @@
namespace POCDistance.Models
{
public class LocationModel
{
public string ZipCode { get; set; }
public string City { get; set; }
public string Latitude { get; set; }
public string Longitude { get; set; }
public string Country { get; set; }
public string State { get; set; }
}
}

+ 12
- 0
API/POCDistance/Models/LocationModel1.cs View File

@ -0,0 +1,12 @@
namespace POCDistance.Models
{
public class LocationModel
{
public string ZipCode { get; set; }
public double Latitute { get; set; }
public double Longitude { get; set; }
public string City { get; set; }
public string Country { get; set; }
public string State { get; set; }
}
}

+ 13
- 0
API/POCDistance/Models/SecurityPolicy.cs View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace POCDistance.Models
{
public class SecurityPolicy
{
public const string SiteCorsPolicy = "SiteCors";
public const string CoreCorsPolicy = "CoreCors";
}
}

+ 19
- 0
API/POCDistance/POCDistance.csproj View File

@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<UserSecretsId>8fafca66-4073-4e9d-9691-eeb04bf6610a</UserSecretsId>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
</PropertyGroup>
<ItemGroup>
<Compile Remove="Models\LocationModel1.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.11.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.6.3" />
</ItemGroup>
</Project>

+ 10
- 0
API/POCDistance/POCDistance.csproj.user View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ActiveDebugProfile>Docker</ActiveDebugProfile>
<ShowAllFiles>true</ShowAllFiles>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
</PropertyGroup>
</Project>

+ 26
- 0
API/POCDistance/Program.cs View File

@ -0,0 +1,26 @@
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace POCDistance
{
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<Startup>();
});
}
}

+ 38
- 0
API/POCDistance/Properties/launchSettings.json View File

@ -0,0 +1,38 @@
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:49366",
"sslPort": 44374
}
},
"$schema": "http://json.schemastore.org/launchsettings.json",
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"POCDistance": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"dotnetRunMessages": "true",
"applicationUrl": "https://localhost:5001;http://localhost:5000"
},
"Docker": {
"commandName": "Docker",
"launchBrowser": true,
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/swagger",
"publishAllPorts": true,
"useSSL": true
}
}
}

+ 13
- 0
API/POCDistance/Service/ILocationService.cs View File

@ -0,0 +1,13 @@
using POCDistance.Models;
using System.Collections.Generic;
namespace POCDistance.Service
{
public interface ILocationService
{
public List<LocationModel> GetAll();
public List<LocationModel> GetManyByZipCode(string zipCode);
public LocationModel GetByZipCode(string zipCode);
public DistanceModel GetDistanceByZipCode(string zipCode1, string zipCode2);
}
}

+ 80
- 0
API/POCDistance/Service/LocationService.cs View File

@ -0,0 +1,80 @@
using Microsoft.AspNetCore.Http;
using POCDistance.DAL;
using POCDistance.Models;
using POCDistance.Util;
using System.Collections.Generic;
using System.Linq;
namespace POCDistance.Service
{
public class LocationService : ILocationService
{
private readonly IHttpContextAccessor _httpContextAccessor;
private readonly IDataSourceAdapter _dataAdapter;
public LocationService(IHttpContextAccessor httpContextAccessor, IDataSourceAdapter dataAdapter)
{
_httpContextAccessor = httpContextAccessor;
_dataAdapter = dataAdapter;
}
public List<LocationModel> GetAll()
{
var locations = new List<LocationModel>();
if (!string.IsNullOrEmpty(_httpContextAccessor.HttpContext.Session.GetString("LocationData")))
{
locations = _httpContextAccessor.HttpContext.Session.GetObjectFromJson<List<LocationModel>>("LocationData");
}
else
{
locations = _dataAdapter.GetLocations();
_httpContextAccessor.HttpContext.Session.SetObjectAsJson("LocationData", locations);
}
return locations;
}
public List<LocationModel> GetManyByZipCode(string zipCode)
{
if (!string.IsNullOrWhiteSpace(zipCode) && zipCode.Length > 1)
{
var locations = GetAll();
var query = locations.Where(l => l.ZipCode.ToLower() == zipCode.Trim().ToLower());
return query.ToList();
}
return new List<LocationModel>();
}
public LocationModel GetByZipCode(string zipCode)
{
var _location = GetManyByZipCode(zipCode);
return _location.OrderByDescending(l => l.Country).FirstOrDefault();
}
public DistanceModel GetDistanceByZipCode(string zipCode1, string zipCode2)
{
double distance = 0.0;
double loc_lat1, loc_long1, loc_lat2, loc_long2;
var model = new DistanceModel();
var location1 = GetByZipCode(zipCode1);
var location2 = GetByZipCode(zipCode2);
if (location1 != null
&& location2 != null
&& double.TryParse(location1.Latitude, out loc_lat1)
&& double.TryParse(location1.Longitude, out loc_long1)
&& double.TryParse(location2.Latitude, out loc_lat2)
&& double.TryParse(location2.Longitude, out loc_long2))
{
distance = CalculateDistance.GetDistance(loc_lat1, loc_long1, loc_lat2, loc_long2);
model.Distance = distance.ToString("0.00");
model.FromCity = location1.City;
model.ToCity = location2.City;
model.Unit = "km";
}
return model;
}
}
}

+ 89
- 0
API/POCDistance/Startup.cs View File

@ -0,0 +1,89 @@
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Microsoft.OpenApi.Models;
using POCDistance.DAL;
using POCDistance.Models;
using POCDistance.Service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace POCDistance
{
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.AddCors(options =>
{
options.AddPolicy(SecurityPolicy.SiteCorsPolicy, builder =>
{
builder.AllowAnyHeader();
builder.AllowAnyMethod();
builder.AllowAnyOrigin();
});
});
//Added for session state
services.AddDistributedMemoryCache();
services.AddSession(options =>
{
options.IdleTimeout = TimeSpan.FromMinutes(10);
});
services.AddControllers();
services.AddSwaggerGen(c =>
{
c.SwaggerDoc("v1", new OpenApiInfo { Title = "POCDistance", Version = "v1" });
});
//DI Implementation
services.AddHttpContextAccessor();
services.TryAddSingleton<IHttpContextAccessor, HttpContextAccessor>();
services.TryAddScoped<IDataSourceAdapter, DataSourceAdapter>();
services.TryAddScoped<ILocationService, LocationService>();
}
// 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.UseSwagger();
app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "POCDistance v1"));
}
app.UseSession();
app.UseHttpsRedirection();
app.UseRouting();
// UseCors with CorsPolicy defined
app.UseCors(SecurityPolicy.SiteCorsPolicy);
app.UseAuthorization();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
}
}
}

+ 44
- 0
API/POCDistance/Util/CalculateDistance.cs View File

@ -0,0 +1,44 @@
using System;
namespace POCDistance.Util
{
public static class CalculateDistance
{
static double toRadians(
double angleIn10thofaDegree)
{
// Angle in 10th
// of a degree
return (angleIn10thofaDegree * Math.PI) / 180;
}
public static double GetDistance(double lat1, double lon1, double lat2, double lon2)
{
// The math module contains
// a function named toRadians
// which converts from degrees
// to radians.
lon1 = toRadians(lon1);
lon2 = toRadians(lon2);
lat1 = toRadians(lat1);
lat2 = toRadians(lat2);
// Haversine formula
double dlon = lon2 - lon1;
double dlat = lat2 - lat1;
double a = Math.Pow(Math.Sin(dlat / 2), 2) +
Math.Cos(lat1) * Math.Cos(lat2) *
Math.Pow(Math.Sin(dlon / 2), 2);
double c = 2 * Math.Asin(Math.Sqrt(a));
// Radius of earth in
// kilometers. Use 3956
// for miles
double r = 6371;
// calculate the result
return (c * r);
}
}
}

+ 19
- 0
API/POCDistance/Util/SessionExtensions.cs View File

@ -0,0 +1,19 @@
using Microsoft.AspNetCore.Http;
using Newtonsoft.Json;
namespace POCDistance.Util
{
public static class SessionExtensions
{
public static void SetObjectAsJson(this ISession session, string key, object value)
{
session.SetString(key, JsonConvert.SerializeObject(value));
}
public static T GetObjectFromJson<T>(this ISession session, string key)
{
var value = session.GetString(key);
return value == null ? default(T) : JsonConvert.DeserializeObject<T>(value);
}
}
}

+ 9
- 0
API/POCDistance/appsettings.Development.json View File

@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
}
}

+ 10
- 0
API/POCDistance/appsettings.json View File

@ -0,0 +1,10 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*"
}

BIN
API/POCDistance/bin/Debug/net5.0/Microsoft.OpenApi.dll View File


BIN
API/POCDistance/bin/Debug/net5.0/Newtonsoft.Json.dll View File


+ 2
- 0
API/POCDistance/bin/Debug/net5.0/POCDistance.StaticWebAssets.xml View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<StaticWebAssets Version="1.0" />

+ 3579
- 0
API/POCDistance/bin/Debug/net5.0/POCDistance.deps.json
File diff suppressed because it is too large
View File


BIN
API/POCDistance/bin/Debug/net5.0/POCDistance.dll View File


BIN
API/POCDistance/bin/Debug/net5.0/POCDistance.exe View File


BIN
API/POCDistance/bin/Debug/net5.0/POCDistance.pdb View File


+ 8
- 0
API/POCDistance/bin/Debug/net5.0/POCDistance.runtimeconfig.dev.json View File

@ -0,0 +1,8 @@
{
"runtimeOptions": {
"additionalProbingPaths": [
"C:\\Users\\satye\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\satye\\.nuget\\packages"
]
}
}

+ 13
- 0
API/POCDistance/bin/Debug/net5.0/POCDistance.runtimeconfig.json View File

@ -0,0 +1,13 @@
{
"runtimeOptions": {
"tfm": "net5.0",
"framework": {
"name": "Microsoft.AspNetCore.App",
"version": "5.0.0"
},
"configProperties": {
"System.GC.Server": true,
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}

BIN
API/POCDistance/bin/Debug/net5.0/Swashbuckle.AspNetCore.Swagger.dll View File


BIN
API/POCDistance/bin/Debug/net5.0/Swashbuckle.AspNetCore.SwaggerGen.dll View File


BIN
API/POCDistance/bin/Debug/net5.0/Swashbuckle.AspNetCore.SwaggerUI.dll View File


+ 9
- 0
API/POCDistance/bin/Debug/net5.0/appsettings.Development.json View File

@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
}
}

+ 10
- 0
API/POCDistance/bin/Debug/net5.0/appsettings.json View File

@ -0,0 +1,10 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*"
}

BIN
API/POCDistance/bin/Debug/net5.0/ref/POCDistance.dll View File


+ 199190
- 0
API/POCDistance/bin/Debug/net5.0/zip.json
File diff suppressed because it is too large
View File


+ 1
- 0
API/POCDistance/obj/Container/AbsoluteOutputAssemblyPath.cache View File

@ -0,0 +1 @@
/app/bin/Debug/net5.0/POCDistance.dll

+ 1
- 0
API/POCDistance/obj/Container/AdditionalProbingPaths.cache View File

@ -0,0 +1 @@
--additionalProbingPath /root/.nuget/fallbackpackages

+ 0
- 0
API/POCDistance/obj/Container/ContainerCreationResult.cache View File


+ 1
- 0
API/POCDistance/obj/Container/ContainerDevelopmentMode.cache View File

@ -0,0 +1 @@
Fast

+ 0
- 0
API/POCDistance/obj/Container/ContainerId.cache View File


+ 0
- 0
API/POCDistance/obj/Container/ContainerName.cache View File


+ 1
- 0
API/POCDistance/obj/Container/ContainerOperatingSystemFlavor.cache View File

@ -0,0 +1 @@
Unknown

+ 0
- 0
API/POCDistance/obj/Container/ContainerRunContext.cache View File


+ 0
- 0
API/POCDistance/obj/Container/DebuggeeArguments.cache View File


+ 0
- 0
API/POCDistance/obj/Container/DebuggeeKillProcessCommand.cache View File


+ 0
- 0
API/POCDistance/obj/Container/DebuggeeProgram.cache View File


+ 0
- 0
API/POCDistance/obj/Container/DebuggeeWorkingDirectory.cache View File


+ 0
- 0
API/POCDistance/obj/Container/FastModeProjectMountDirectory.cache View File


+ 1
- 0
API/POCDistance/obj/Container/ImageBuildContext.cache View File

@ -0,0 +1 @@
FbydR80EcPjthzAJpKvgkg9kowExx0uXoFUWP7umYtI=

+ 1
- 0
API/POCDistance/obj/Container/ImageId.cache View File

@ -0,0 +1 @@
sha256:94a13a211cafaff41c3cd9a6caae2141bb43bc14940f2212b32b4a1f7177a41f

+ 1
- 0
API/POCDistance/obj/Container/OperatingSystemName.cache View File

@ -0,0 +1 @@
Linux

+ 1
- 0
API/POCDistance/obj/Container/TargetFramework.cache View File

@ -0,0 +1 @@
DotNetCore

+ 1
- 0
API/POCDistance/obj/Container/VsDbgScript.cache View File

@ -0,0 +1 @@
ID=.; if [ -e /etc/os-release ]; then . /etc/os-release; fi; if [ $ID = alpine ] && [ -e /remote_debugger/linux-musl-x64/vsdbg ]; then VSDBGPATH=/remote_debugger/linux-musl-x64; else VSDBGPATH=/remote_debugger; fi; $VSDBGPATH/vsdbg --interpreter=vscode

+ 0
- 0
API/POCDistance/obj/Container/warmup.sem View File


+ 4
- 0
API/POCDistance/obj/Debug/net5.0/.NETCoreApp,Version=v5.0.AssemblyAttributes.cs View File

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v5.0", FrameworkDisplayName = "")]

+ 24
- 0
API/POCDistance/obj/Debug/net5.0/POCDistance.AssemblyInfo.cs View File

@ -0,0 +1,24 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: Microsoft.Extensions.Configuration.UserSecrets.UserSecretsIdAttribute("8fafca66-4073-4e9d-9691-eeb04bf6610a")]
[assembly: System.Reflection.AssemblyCompanyAttribute("POCDistance")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("POCDistance")]
[assembly: System.Reflection.AssemblyTitleAttribute("POCDistance")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.

+ 1
- 0
API/POCDistance/obj/Debug/net5.0/POCDistance.AssemblyInfoInputs.cache View File

@ -0,0 +1 @@
18e23f4e4d2a981ef99e9feadb847c3d2d46e0af

+ 10
- 0
API/POCDistance/obj/Debug/net5.0/POCDistance.GeneratedMSBuildEditorConfig.editorconfig View File

@ -0,0 +1,10 @@
is_global = true
build_property.TargetFramework = net5.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb = true
build_property.ProjectTypeGuids =
build_property.PublishSingleFile =
build_property.IncludeAllContentForSelfExtract =
build_property._SupportedPlatformList = Android,iOS,Linux,macOS,Windows
build_property.RootNamespace = POCDistance
build_property.ProjectDir = C:\Users\satye\Downloads\POCDistance\POCDistance\

+ 0
- 0
API/POCDistance/obj/Debug/net5.0/POCDistance.MvcApplicationPartsAssemblyInfo.cache View File


+ 17
- 0
API/POCDistance/obj/Debug/net5.0/POCDistance.MvcApplicationPartsAssemblyInfo.cs View File

@ -0,0 +1,17 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartAttribute("Swashbuckle.AspNetCore.SwaggerGen")]
// Generated by the MSBuild WriteCodeFragment class.

+ 1
- 0
API/POCDistance/obj/Debug/net5.0/POCDistance.RazorTargetAssemblyInfo.cache View File

@ -0,0 +1 @@
b9a633280a9f88f012d8706ece2092951222a593

BIN
API/POCDistance/obj/Debug/net5.0/POCDistance.assets.cache View File


BIN
API/POCDistance/obj/Debug/net5.0/POCDistance.csproj.AssemblyReference.cache View File


+ 1
- 0
API/POCDistance/obj/Debug/net5.0/POCDistance.csproj.CoreCompileInputs.cache View File

@ -0,0 +1 @@
cdea23f8d590e2b1f72a984daaf51778cf0a1721

+ 92
- 0
API/POCDistance/obj/Debug/net5.0/POCDistance.csproj.FileListAbsolute.txt View File

@ -0,0 +1,92 @@
D:\Work\POCDistance\POCDistance\bin\Debug\net5.0\appsettings.Development.json
D:\Work\POCDistance\POCDistance\bin\Debug\net5.0\appsettings.json
D:\Work\POCDistance\POCDistance\bin\Debug\net5.0\zip.json
D:\Work\POCDistance\POCDistance\bin\Debug\net5.0\POCDistance.exe
D:\Work\POCDistance\POCDistance\bin\Debug\net5.0\POCDistance.deps.json
D:\Work\POCDistance\POCDistance\bin\Debug\net5.0\POCDistance.runtimeconfig.json
D:\Work\POCDistance\POCDistance\bin\Debug\net5.0\POCDistance.runtimeconfig.dev.json
D:\Work\POCDistance\POCDistance\bin\Debug\net5.0\POCDistance.dll
D:\Work\POCDistance\POCDistance\bin\Debug\net5.0\ref\POCDistance.dll
D:\Work\POCDistance\POCDistance\bin\Debug\net5.0\POCDistance.pdb
D:\Work\POCDistance\POCDistance\bin\Debug\net5.0\Microsoft.OpenApi.dll
D:\Work\POCDistance\POCDistance\bin\Debug\net5.0\Newtonsoft.Json.dll
D:\Work\POCDistance\POCDistance\bin\Debug\net5.0\Swashbuckle.AspNetCore.Swagger.dll
D:\Work\POCDistance\POCDistance\bin\Debug\net5.0\Swashbuckle.AspNetCore.SwaggerGen.dll
D:\Work\POCDistance\POCDistance\bin\Debug\net5.0\Swashbuckle.AspNetCore.SwaggerUI.dll
D:\Work\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.csproj.AssemblyReference.cache
D:\Work\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.GeneratedMSBuildEditorConfig.editorconfig
D:\Work\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.AssemblyInfoInputs.cache
D:\Work\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.AssemblyInfo.cs
D:\Work\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.csproj.CoreCompileInputs.cache
D:\Work\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.MvcApplicationPartsAssemblyInfo.cs
D:\Work\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.MvcApplicationPartsAssemblyInfo.cache
D:\Work\POCDistance\POCDistance\obj\Debug\net5.0\staticwebassets\POCDistance.StaticWebAssets.Manifest.cache
D:\Work\POCDistance\POCDistance\obj\Debug\net5.0\staticwebassets\POCDistance.StaticWebAssets.xml
D:\Work\POCDistance\POCDistance\obj\Debug\net5.0\scopedcss\bundle\POCDistance.styles.css
D:\Work\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.RazorTargetAssemblyInfo.cache
D:\Work\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.csproj.CopyComplete
D:\Work\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.dll
D:\Work\POCDistance\POCDistance\obj\Debug\net5.0\ref\POCDistance.dll
D:\Work\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.pdb
D:\Work\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.genruntimeconfig.cache
D:\projects\others\Distance POC\source\POCDistance\POCDistance\bin\Debug\net5.0\appsettings.Development.json
D:\projects\others\Distance POC\source\POCDistance\POCDistance\bin\Debug\net5.0\appsettings.json
D:\projects\others\Distance POC\source\POCDistance\POCDistance\bin\Debug\net5.0\zip.json
D:\projects\others\Distance POC\source\POCDistance\POCDistance\bin\Debug\net5.0\POCDistance.exe
D:\projects\others\Distance POC\source\POCDistance\POCDistance\bin\Debug\net5.0\POCDistance.deps.json
D:\projects\others\Distance POC\source\POCDistance\POCDistance\bin\Debug\net5.0\POCDistance.runtimeconfig.json
D:\projects\others\Distance POC\source\POCDistance\POCDistance\bin\Debug\net5.0\POCDistance.runtimeconfig.dev.json
D:\projects\others\Distance POC\source\POCDistance\POCDistance\bin\Debug\net5.0\POCDistance.dll
D:\projects\others\Distance POC\source\POCDistance\POCDistance\bin\Debug\net5.0\ref\POCDistance.dll
D:\projects\others\Distance POC\source\POCDistance\POCDistance\bin\Debug\net5.0\POCDistance.pdb
D:\projects\others\Distance POC\source\POCDistance\POCDistance\bin\Debug\net5.0\Microsoft.OpenApi.dll
D:\projects\others\Distance POC\source\POCDistance\POCDistance\bin\Debug\net5.0\Newtonsoft.Json.dll
D:\projects\others\Distance POC\source\POCDistance\POCDistance\bin\Debug\net5.0\Swashbuckle.AspNetCore.Swagger.dll
D:\projects\others\Distance POC\source\POCDistance\POCDistance\bin\Debug\net5.0\Swashbuckle.AspNetCore.SwaggerGen.dll
D:\projects\others\Distance POC\source\POCDistance\POCDistance\bin\Debug\net5.0\Swashbuckle.AspNetCore.SwaggerUI.dll
D:\projects\others\Distance POC\source\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.csproj.AssemblyReference.cache
D:\projects\others\Distance POC\source\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.GeneratedMSBuildEditorConfig.editorconfig
D:\projects\others\Distance POC\source\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.AssemblyInfoInputs.cache
D:\projects\others\Distance POC\source\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.AssemblyInfo.cs
D:\projects\others\Distance POC\source\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.csproj.CoreCompileInputs.cache
D:\projects\others\Distance POC\source\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.MvcApplicationPartsAssemblyInfo.cs
D:\projects\others\Distance POC\source\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.MvcApplicationPartsAssemblyInfo.cache
D:\projects\others\Distance POC\source\POCDistance\POCDistance\obj\Debug\net5.0\staticwebassets\POCDistance.StaticWebAssets.Manifest.cache
D:\projects\others\Distance POC\source\POCDistance\POCDistance\obj\Debug\net5.0\staticwebassets\POCDistance.StaticWebAssets.xml
D:\projects\others\Distance POC\source\POCDistance\POCDistance\obj\Debug\net5.0\scopedcss\bundle\POCDistance.styles.css
D:\projects\others\Distance POC\source\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.RazorTargetAssemblyInfo.cache
D:\projects\others\Distance POC\source\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.dll
D:\projects\others\Distance POC\source\POCDistance\POCDistance\obj\Debug\net5.0\ref\POCDistance.dll
D:\projects\others\Distance POC\source\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.pdb
D:\projects\others\Distance POC\source\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.genruntimeconfig.cache
C:\Users\satye\Downloads\POCDistance\POCDistance\bin\Debug\net5.0\appsettings.Development.json
C:\Users\satye\Downloads\POCDistance\POCDistance\bin\Debug\net5.0\appsettings.json
C:\Users\satye\Downloads\POCDistance\POCDistance\bin\Debug\net5.0\zip.json
C:\Users\satye\Downloads\POCDistance\POCDistance\bin\Debug\net5.0\POCDistance.exe
C:\Users\satye\Downloads\POCDistance\POCDistance\bin\Debug\net5.0\POCDistance.deps.json
C:\Users\satye\Downloads\POCDistance\POCDistance\bin\Debug\net5.0\POCDistance.runtimeconfig.json
C:\Users\satye\Downloads\POCDistance\POCDistance\bin\Debug\net5.0\POCDistance.runtimeconfig.dev.json
C:\Users\satye\Downloads\POCDistance\POCDistance\bin\Debug\net5.0\POCDistance.dll
C:\Users\satye\Downloads\POCDistance\POCDistance\bin\Debug\net5.0\ref\POCDistance.dll
C:\Users\satye\Downloads\POCDistance\POCDistance\bin\Debug\net5.0\POCDistance.pdb
C:\Users\satye\Downloads\POCDistance\POCDistance\bin\Debug\net5.0\Microsoft.OpenApi.dll
C:\Users\satye\Downloads\POCDistance\POCDistance\bin\Debug\net5.0\Newtonsoft.Json.dll
C:\Users\satye\Downloads\POCDistance\POCDistance\bin\Debug\net5.0\Swashbuckle.AspNetCore.Swagger.dll
C:\Users\satye\Downloads\POCDistance\POCDistance\bin\Debug\net5.0\Swashbuckle.AspNetCore.SwaggerGen.dll
C:\Users\satye\Downloads\POCDistance\POCDistance\bin\Debug\net5.0\Swashbuckle.AspNetCore.SwaggerUI.dll
C:\Users\satye\Downloads\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.csproj.AssemblyReference.cache
C:\Users\satye\Downloads\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.GeneratedMSBuildEditorConfig.editorconfig
C:\Users\satye\Downloads\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.AssemblyInfoInputs.cache
C:\Users\satye\Downloads\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.AssemblyInfo.cs
C:\Users\satye\Downloads\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.csproj.CoreCompileInputs.cache
C:\Users\satye\Downloads\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.MvcApplicationPartsAssemblyInfo.cs
C:\Users\satye\Downloads\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.MvcApplicationPartsAssemblyInfo.cache
C:\Users\satye\Downloads\POCDistance\POCDistance\obj\Debug\net5.0\staticwebassets\POCDistance.StaticWebAssets.Manifest.cache
C:\Users\satye\Downloads\POCDistance\POCDistance\obj\Debug\net5.0\staticwebassets\POCDistance.StaticWebAssets.xml
C:\Users\satye\Downloads\POCDistance\POCDistance\obj\Debug\net5.0\scopedcss\bundle\POCDistance.styles.css
C:\Users\satye\Downloads\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.RazorTargetAssemblyInfo.cache
C:\Users\satye\Downloads\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.csproj.CopyComplete
C:\Users\satye\Downloads\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.dll
C:\Users\satye\Downloads\POCDistance\POCDistance\obj\Debug\net5.0\ref\POCDistance.dll
C:\Users\satye\Downloads\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.pdb
C:\Users\satye\Downloads\POCDistance\POCDistance\obj\Debug\net5.0\POCDistance.genruntimeconfig.cache

BIN
API/POCDistance/obj/Debug/net5.0/POCDistance.dll View File


+ 1
- 0
API/POCDistance/obj/Debug/net5.0/POCDistance.genruntimeconfig.cache View File

@ -0,0 +1 @@
8cfeb0349fe423196b23bc84014b967fb7068571

BIN
API/POCDistance/obj/Debug/net5.0/POCDistance.pdb View File


BIN
API/POCDistance/obj/Debug/net5.0/apphost.exe View File


BIN
API/POCDistance/obj/Debug/net5.0/ref/POCDistance.dll View File


+ 0
- 0
API/POCDistance/obj/Debug/net5.0/staticwebassets/POCDistance.StaticWebAssets.Manifest.cache View File


+ 1
- 0
API/POCDistance/obj/Debug/net5.0/staticwebassets/POCDistance.StaticWebAssets.xml View File

@ -0,0 +1 @@
<StaticWebAssets Version="1.0" />

+ 79
- 0
API/POCDistance/obj/POCDistance.csproj.nuget.dgspec.json View File

@ -0,0 +1,79 @@
{
"format": 1,
"restore": {
"C:\\Users\\satye\\Downloads\\POCDistance\\POCDistance\\POCDistance.csproj": {}
},
"projects": {
"C:\\Users\\satye\\Downloads\\POCDistance\\POCDistance\\POCDistance.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\satye\\Downloads\\POCDistance\\POCDistance\\POCDistance.csproj",
"projectName": "POCDistance",
"projectPath": "C:\\Users\\satye\\Downloads\\POCDistance\\POCDistance\\POCDistance.csproj",
"packagesPath": "C:\\Users\\satye\\.nuget\\packages\\",
"outputPath": "C:\\Users\\satye\\Downloads\\POCDistance\\POCDistance\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\satye\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net5.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net5.0": {
"targetAlias": "net5.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net5.0": {
"targetAlias": "net5.0",
"dependencies": {
"Microsoft.VisualStudio.Azure.Containers.Tools.Targets": {
"target": "Package",
"version": "[1.11.1, )"
},
"Newtonsoft.Json": {
"target": "Package",
"version": "[13.0.1, )"
},
"Swashbuckle.AspNetCore": {
"target": "Package",
"version": "[5.6.3, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.AspNetCore.App": {
"privateAssets": "none"
},
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.404\\RuntimeIdentifierGraph.json"
}
}
}
}
}

+ 27
- 0
API/POCDistance/obj/POCDistance.csproj.nuget.g.props View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\satye\.nuget\packages\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.11.1</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\satye\.nuget\packages\" />
</ItemGroup>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)microsoft.extensions.apidescription.server\3.0.0\build\Microsoft.Extensions.ApiDescription.Server.props" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.apidescription.server\3.0.0\build\Microsoft.Extensions.ApiDescription.Server.props')" />
<Import Project="$(NuGetPackageRoot)swashbuckle.aspnetcore\5.6.3\build\Swashbuckle.AspNetCore.props" Condition="Exists('$(NuGetPackageRoot)swashbuckle.aspnetcore\5.6.3\build\Swashbuckle.AspNetCore.props')" />
<Import Project="$(NuGetPackageRoot)microsoft.visualstudio.azure.containers.tools.targets\1.11.1\build\Microsoft.VisualStudio.Azure.Containers.Tools.Targets.props" Condition="Exists('$(NuGetPackageRoot)microsoft.visualstudio.azure.containers.tools.targets\1.11.1\build\Microsoft.VisualStudio.Azure.Containers.Tools.Targets.props')" />
</ImportGroup>
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<PkgMicrosoft_Extensions_ApiDescription_Server Condition=" '$(PkgMicrosoft_Extensions_ApiDescription_Server)' == '' ">C:\Users\satye\.nuget\packages\microsoft.extensions.apidescription.server\3.0.0</PkgMicrosoft_Extensions_ApiDescription_Server>
<PkgMicrosoft_VisualStudio_Azure_Containers_Tools_Targets Condition=" '$(PkgMicrosoft_VisualStudio_Azure_Containers_Tools_Targets)' == '' ">C:\Users\satye\.nuget\packages\microsoft.visualstudio.azure.containers.tools.targets\1.11.1</PkgMicrosoft_VisualStudio_Azure_Containers_Tools_Targets>
</PropertyGroup>
</Project>

+ 10
- 0
API/POCDistance/obj/POCDistance.csproj.nuget.g.targets View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)microsoft.extensions.apidescription.server\3.0.0\build\Microsoft.Extensions.ApiDescription.Server.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.apidescription.server\3.0.0\build\Microsoft.Extensions.ApiDescription.Server.targets')" />
<Import Project="$(NuGetPackageRoot)microsoft.visualstudio.azure.containers.tools.targets\1.11.1\build\Microsoft.VisualStudio.Azure.Containers.Tools.Targets.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.visualstudio.azure.containers.tools.targets\1.11.1\build\Microsoft.VisualStudio.Azure.Containers.Tools.Targets.targets')" />
</ImportGroup>
</Project>

+ 393
- 0
API/POCDistance/obj/project.assets.json View File

@ -0,0 +1,393 @@
{
"version": 3,
"targets": {
"net5.0": {
"Microsoft.Extensions.ApiDescription.Server/3.0.0": {
"type": "package",
"build": {
"build/Microsoft.Extensions.ApiDescription.Server.props": {},
"build/Microsoft.Extensions.ApiDescription.Server.targets": {}
},
"buildMultiTargeting": {
"buildMultiTargeting/Microsoft.Extensions.ApiDescription.Server.props": {},
"buildMultiTargeting/Microsoft.Extensions.ApiDescription.Server.targets": {}
}
},
"Microsoft.OpenApi/1.2.3": {
"type": "package",
"compile": {
"lib/netstandard2.0/Microsoft.OpenApi.dll": {}
},
"runtime": {
"lib/netstandard2.0/Microsoft.OpenApi.dll": {}
}
},
"Microsoft.VisualStudio.Azure.Containers.Tools.Targets/1.11.1": {
"type": "package",
"build": {
"build/Microsoft.VisualStudio.Azure.Containers.Tools.Targets.props": {},
"build/Microsoft.VisualStudio.Azure.Containers.Tools.Targets.targets": {}
}
},
"Newtonsoft.Json/13.0.1": {
"type": "package",
"compile": {
"lib/netstandard2.0/Newtonsoft.Json.dll": {}
},
"runtime": {
"lib/netstandard2.0/Newtonsoft.Json.dll": {}
}
},
"Swashbuckle.AspNetCore/5.6.3": {
"type": "package",
"dependencies": {
"Microsoft.Extensions.ApiDescription.Server": "3.0.0",
"Swashbuckle.AspNetCore.Swagger": "5.6.3",
"Swashbuckle.AspNetCore.SwaggerGen": "5.6.3",
"Swashbuckle.AspNetCore.SwaggerUI": "5.6.3"
},
"build": {
"build/Swashbuckle.AspNetCore.props": {}
}
},
"Swashbuckle.AspNetCore.Swagger/5.6.3": {
"type": "package",
"dependencies": {
"Microsoft.OpenApi": "1.2.3"
},
"compile": {
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.dll": {}
},
"runtime": {
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.dll": {}
},
"frameworkReferences": [
"Microsoft.AspNetCore.App"
]
},
"Swashbuckle.AspNetCore.SwaggerGen/5.6.3": {
"type": "package",
"dependencies": {
"Swashbuckle.AspNetCore.Swagger": "5.6.3"
},
"compile": {
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.dll": {}
},
"runtime": {
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.dll": {}
},
"frameworkReferences": [
"Microsoft.AspNetCore.App"
]
},
"Swashbuckle.AspNetCore.SwaggerUI/5.6.3": {
"type": "package",
"compile": {
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.dll": {}
},
"runtime": {
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.dll": {}
},
"frameworkReferences": [
"Microsoft.AspNetCore.App"
]
}
}
},
"libraries": {
"Microsoft.Extensions.ApiDescription.Server/3.0.0": {
"sha512": "LH4OE/76F6sOCslif7+Xh3fS/wUUrE5ryeXAMcoCnuwOQGT5Smw0p57IgDh/pHgHaGz/e+AmEQb7pRgb++wt0w==",
"type": "package",
"path": "microsoft.extensions.apidescription.server/3.0.0",
"hasTools": true,
"files": [
".nupkg.metadata",
".signature.p7s",
"build/Microsoft.Extensions.ApiDescription.Server.props",
"build/Microsoft.Extensions.ApiDescription.Server.targets",
"buildMultiTargeting/Microsoft.Extensions.ApiDescription.Server.props",
"buildMultiTargeting/Microsoft.Extensions.ApiDescription.Server.targets",
"microsoft.extensions.apidescription.server.3.0.0.nupkg.sha512",
"microsoft.extensions.apidescription.server.nuspec",
"tools/Newtonsoft.Json.dll",
"tools/dotnet-getdocument.deps.json",
"tools/dotnet-getdocument.dll",
"tools/dotnet-getdocument.runtimeconfig.json",
"tools/net461-x86/GetDocument.Insider.exe",
"tools/net461-x86/GetDocument.Insider.exe.config",
"tools/net461/GetDocument.Insider.exe",
"tools/net461/GetDocument.Insider.exe.config",
"tools/netcoreapp2.1/GetDocument.Insider.deps.json",
"tools/netcoreapp2.1/GetDocument.Insider.dll",
"tools/netcoreapp2.1/GetDocument.Insider.runtimeconfig.json"
]
},
"Microsoft.OpenApi/1.2.3": {
"sha512": "Nug3rO+7Kl5/SBAadzSMAVgqDlfGjJZ0GenQrLywJ84XGKO0uRqkunz5Wyl0SDwcR71bAATXvSdbdzPrYRYKGw==",
"type": "package",
"path": "microsoft.openapi/1.2.3",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/net46/Microsoft.OpenApi.dll",
"lib/net46/Microsoft.OpenApi.pdb",
"lib/net46/Microsoft.OpenApi.xml",
"lib/netstandard2.0/Microsoft.OpenApi.dll",
"lib/netstandard2.0/Microsoft.OpenApi.pdb",
"lib/netstandard2.0/Microsoft.OpenApi.xml",
"microsoft.openapi.1.2.3.nupkg.sha512",
"microsoft.openapi.nuspec"
]
},
"Microsoft.VisualStudio.Azure.Containers.Tools.Targets/1.11.1": {
"sha512": "1jHxWlSi6/ryWODk6SUjsZPHk/BdsucxqhIi1szEzwc84e8nvZWF45qRXcT2gWPISJ3Ybbyg2LsNG6yX8r7VuA==",
"type": "package",
"path": "microsoft.visualstudio.azure.containers.tools.targets/1.11.1",
"hasTools": true,
"files": [
".nupkg.metadata",
".signature.p7s",
"EULA.md",
"ThirdPartyNotices.txt",
"build/Container.props",
"build/Container.targets",
"build/Microsoft.VisualStudio.Azure.Containers.Tools.Targets.props",
"build/Microsoft.VisualStudio.Azure.Containers.Tools.Targets.targets",
"build/Rules/GeneralBrowseObject.xaml",
"build/Rules/cs-CZ/GeneralBrowseObject.xaml",
"build/Rules/de-DE/GeneralBrowseObject.xaml",
"build/Rules/es-ES/GeneralBrowseObject.xaml",
"build/Rules/fr-FR/GeneralBrowseObject.xaml",
"build/Rules/it-IT/GeneralBrowseObject.xaml",
"build/Rules/ja-JP/GeneralBrowseObject.xaml",
"build/Rules/ko-KR/GeneralBrowseObject.xaml",
"build/Rules/pl-PL/GeneralBrowseObject.xaml",
"build/Rules/pt-BR/GeneralBrowseObject.xaml",
"build/Rules/ru-RU/GeneralBrowseObject.xaml",
"build/Rules/tr-TR/GeneralBrowseObject.xaml",
"build/Rules/zh-CN/GeneralBrowseObject.xaml",
"build/Rules/zh-TW/GeneralBrowseObject.xaml",
"build/ToolsTarget.props",
"build/ToolsTarget.targets",
"icon.png",
"microsoft.visualstudio.azure.containers.tools.targets.1.11.1.nupkg.sha512",
"microsoft.visualstudio.azure.containers.tools.targets.nuspec",
"tools/Microsoft.VisualStudio.Containers.Tools.Common.dll",
"tools/Microsoft.VisualStudio.Containers.Tools.Shared.dll",
"tools/Microsoft.VisualStudio.Containers.Tools.Tasks.dll",
"tools/Newtonsoft.Json.dll",
"tools/cs/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll",
"tools/cs/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll",
"tools/cs/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll",
"tools/de/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll",
"tools/de/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll",
"tools/de/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll",
"tools/es/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll",
"tools/es/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll",
"tools/es/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll",
"tools/fr/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll",
"tools/fr/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll",
"tools/fr/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll",
"tools/it/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll",
"tools/it/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll",
"tools/it/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll",
"tools/ja/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll",
"tools/ja/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll",
"tools/ja/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll",
"tools/ko/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll",
"tools/ko/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll",
"tools/ko/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll",
"tools/pl/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll",
"tools/pl/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll",
"tools/pl/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll",
"tools/pt-BR/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll",
"tools/pt-BR/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll",
"tools/pt-BR/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll",
"tools/ru/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll",
"tools/ru/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll",
"tools/ru/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll",
"tools/tr/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll",
"tools/tr/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll",
"tools/tr/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll",
"tools/utils/KillProcess.exe",
"tools/zh-Hans/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll",
"tools/zh-Hans/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll",
"tools/zh-Hans/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll",
"tools/zh-Hant/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll",
"tools/zh-Hant/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll",
"tools/zh-Hant/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll"
]
},
"Newtonsoft.Json/13.0.1": {
"sha512": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==",
"type": "package",
"path": "newtonsoft.json/13.0.1",
"files": [
".nupkg.metadata",
".signature.p7s",
"LICENSE.md",
"lib/net20/Newtonsoft.Json.dll",
"lib/net20/Newtonsoft.Json.xml",
"lib/net35/Newtonsoft.Json.dll",
"lib/net35/Newtonsoft.Json.xml",
"lib/net40/Newtonsoft.Json.dll",
"lib/net40/Newtonsoft.Json.xml",
"lib/net45/Newtonsoft.Json.dll",
"lib/net45/Newtonsoft.Json.xml",
"lib/netstandard1.0/Newtonsoft.Json.dll",
"lib/netstandard1.0/Newtonsoft.Json.xml",
"lib/netstandard1.3/Newtonsoft.Json.dll",
"lib/netstandard1.3/Newtonsoft.Json.xml",
"lib/netstandard2.0/Newtonsoft.Json.dll",
"lib/netstandard2.0/Newtonsoft.Json.xml",
"newtonsoft.json.13.0.1.nupkg.sha512",
"newtonsoft.json.nuspec",
"packageIcon.png"
]
},
"Swashbuckle.AspNetCore/5.6.3": {
"sha512": "UkL9GU0mfaA+7RwYjEaBFvAzL8qNQhNqAeV5uaWUu/Z+fVgvK9FHkGCpTXBqSQeIHuZaIElzxnLDdIqGzuCnVg==",
"type": "package",
"path": "swashbuckle.aspnetcore/5.6.3",
"files": [
".nupkg.metadata",
".signature.p7s",
"build/Swashbuckle.AspNetCore.props",
"swashbuckle.aspnetcore.5.6.3.nupkg.sha512",
"swashbuckle.aspnetcore.nuspec"
]
},
"Swashbuckle.AspNetCore.Swagger/5.6.3": {
"sha512": "rn/MmLscjg6WSnTZabojx5DQYle2GjPanSPbCU3Kw8Hy72KyQR3uy8R1Aew5vpNALjfUFm2M/vwUtqdOlzw+GA==",
"type": "package",
"path": "swashbuckle.aspnetcore.swagger/5.6.3",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.dll",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.pdb",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.xml",
"lib/netstandard2.0/Swashbuckle.AspNetCore.Swagger.dll",
"lib/netstandard2.0/Swashbuckle.AspNetCore.Swagger.pdb",
"lib/netstandard2.0/Swashbuckle.AspNetCore.Swagger.xml",
"swashbuckle.aspnetcore.swagger.5.6.3.nupkg.sha512",
"swashbuckle.aspnetcore.swagger.nuspec"
]
},
"Swashbuckle.AspNetCore.SwaggerGen/5.6.3": {
"sha512": "CkhVeod/iLd3ikVTDOwG5sym8BE5xbqGJ15iF3cC7ZPg2kEwDQL4a88xjkzsvC9oOB2ax6B0rK0EgRK+eOBX+w==",
"type": "package",
"path": "swashbuckle.aspnetcore.swaggergen/5.6.3",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.dll",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.pdb",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.xml",
"lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerGen.dll",
"lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerGen.pdb",
"lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerGen.xml",
"swashbuckle.aspnetcore.swaggergen.5.6.3.nupkg.sha512",
"swashbuckle.aspnetcore.swaggergen.nuspec"
]
},
"Swashbuckle.AspNetCore.SwaggerUI/5.6.3": {
"sha512": "BPvcPxQRMsYZ3HnYmGKRWDwX4Wo29WHh14Q6B10BB8Yfbbcza+agOC2UrBFA1EuaZuOsFLbp6E2+mqVNF/Je8A==",
"type": "package",
"path": "swashbuckle.aspnetcore.swaggerui/5.6.3",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.dll",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.pdb",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.xml",
"lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerUI.dll",
"lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerUI.pdb",
"lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerUI.xml",
"swashbuckle.aspnetcore.swaggerui.5.6.3.nupkg.sha512",
"swashbuckle.aspnetcore.swaggerui.nuspec"
]
}
},
"projectFileDependencyGroups": {
"net5.0": [
"Microsoft.VisualStudio.Azure.Containers.Tools.Targets >= 1.11.1",
"Newtonsoft.Json >= 13.0.1",
"Swashbuckle.AspNetCore >= 5.6.3"
]
},
"packageFolders": {
"C:\\Users\\satye\\.nuget\\packages\\": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\satye\\Downloads\\POCDistance\\POCDistance\\POCDistance.csproj",
"projectName": "POCDistance",
"projectPath": "C:\\Users\\satye\\Downloads\\POCDistance\\POCDistance\\POCDistance.csproj",
"packagesPath": "C:\\Users\\satye\\.nuget\\packages\\",
"outputPath": "C:\\Users\\satye\\Downloads\\POCDistance\\POCDistance\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\satye\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net5.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net5.0": {
"targetAlias": "net5.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net5.0": {
"targetAlias": "net5.0",
"dependencies": {
"Microsoft.VisualStudio.Azure.Containers.Tools.Targets": {
"target": "Package",
"version": "[1.11.1, )"
},
"Newtonsoft.Json": {
"target": "Package",
"version": "[13.0.1, )"
},
"Swashbuckle.AspNetCore": {
"target": "Package",
"version": "[5.6.3, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.AspNetCore.App": {
"privateAssets": "none"
},
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.404\\RuntimeIdentifierGraph.json"
}
}
}
}

+ 17
- 0
API/POCDistance/obj/project.nuget.cache View File

@ -0,0 +1,17 @@
{
"version": 2,
"dgSpecHash": "4pZuahbZ60885rQayGIf1R9zI60BK55EW8foWmoAxUiidYfeGS6bIdziJnADNaw/FaYnclBhxpkEExcFAVBvhQ==",
"success": true,
"projectFilePath": "C:\\Users\\satye\\Downloads\\POCDistance\\POCDistance\\POCDistance.csproj",
"expectedPackageFiles": [
"C:\\Users\\satye\\.nuget\\packages\\microsoft.extensions.apidescription.server\\3.0.0\\microsoft.extensions.apidescription.server.3.0.0.nupkg.sha512",
"C:\\Users\\satye\\.nuget\\packages\\microsoft.openapi\\1.2.3\\microsoft.openapi.1.2.3.nupkg.sha512",
"C:\\Users\\satye\\.nuget\\packages\\microsoft.visualstudio.azure.containers.tools.targets\\1.11.1\\microsoft.visualstudio.azure.containers.tools.targets.1.11.1.nupkg.sha512",
"C:\\Users\\satye\\.nuget\\packages\\newtonsoft.json\\13.0.1\\newtonsoft.json.13.0.1.nupkg.sha512",
"C:\\Users\\satye\\.nuget\\packages\\swashbuckle.aspnetcore\\5.6.3\\swashbuckle.aspnetcore.5.6.3.nupkg.sha512",
"C:\\Users\\satye\\.nuget\\packages\\swashbuckle.aspnetcore.swagger\\5.6.3\\swashbuckle.aspnetcore.swagger.5.6.3.nupkg.sha512",
"C:\\Users\\satye\\.nuget\\packages\\swashbuckle.aspnetcore.swaggergen\\5.6.3\\swashbuckle.aspnetcore.swaggergen.5.6.3.nupkg.sha512",
"C:\\Users\\satye\\.nuget\\packages\\swashbuckle.aspnetcore.swaggerui\\5.6.3\\swashbuckle.aspnetcore.swaggerui.5.6.3.nupkg.sha512"
],
"logs": []
}

Loading…
Cancel
Save