Setup haulmkilling sample application
This commit is contained in:
		
							
								
								
									
										20
									
								
								FarmmapsHaulmkilling/FarmmapsHaulmkilling.csproj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								FarmmapsHaulmkilling/FarmmapsHaulmkilling.csproj
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| <Project Sdk="Microsoft.NET.Sdk"> | ||||
|  | ||||
|   <PropertyGroup> | ||||
|     <OutputType>Exe</OutputType> | ||||
|     <TargetFramework>netcoreapp3.0</TargetFramework> | ||||
|   </PropertyGroup> | ||||
|  | ||||
|   <ItemGroup> | ||||
|     <None Update="appsettings.json"> | ||||
|       <CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||||
|     </None> | ||||
|     <None Update="Data\**\*"> | ||||
|       <CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||||
|     </None> | ||||
|   </ItemGroup> | ||||
|  | ||||
|   <ItemGroup> | ||||
|     <ProjectReference Include="..\FarmmapsApi\FarmmapsApi.csproj" /> | ||||
|   </ItemGroup> | ||||
| </Project> | ||||
							
								
								
									
										13
									
								
								FarmmapsHaulmkilling/HaulmkillingApplication.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								FarmmapsHaulmkilling/HaulmkillingApplication.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| using System.Threading.Tasks; | ||||
| using FarmmapsApi; | ||||
|  | ||||
| namespace FarmmapsHaulmkilling | ||||
| { | ||||
|     public class HaulmkillingApplication : IApplication | ||||
|     { | ||||
|         public Task RunAsync() | ||||
|         { | ||||
|             throw new System.NotImplementedException(); | ||||
|         } | ||||
|     } | ||||
| } | ||||
							
								
								
									
										7
									
								
								FarmmapsHaulmkilling/HaulmkillingService.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								FarmmapsHaulmkilling/HaulmkillingService.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| namespace FarmmapsHaulmkilling | ||||
| { | ||||
|     public class HaulmkillingService | ||||
|     { | ||||
|          | ||||
|     } | ||||
| } | ||||
							
								
								
									
										23
									
								
								FarmmapsHaulmkilling/Program.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								FarmmapsHaulmkilling/Program.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | ||||
| using System.Threading.Tasks; | ||||
| using FarmmapsApi; | ||||
| using Microsoft.Extensions.DependencyInjection; | ||||
| using Microsoft.Extensions.Logging; | ||||
|  | ||||
| namespace FarmmapsHaulmkilling | ||||
| { | ||||
|     class Program : FarmmapsProgram<HaulmkillingApplication> | ||||
|     { | ||||
|         private static async Task Main(string[] args) | ||||
|         { | ||||
|             await new Program().Start(args); | ||||
|         } | ||||
|  | ||||
|         protected override void Configure(IServiceCollection serviceCollection) | ||||
|         { | ||||
|             serviceCollection.AddLogging(opts => opts | ||||
|                     .AddConsole() | ||||
|                     .AddFilter("System.Net.Http", LogLevel.Warning)) | ||||
|                 .AddTransient<HaulmkillingService>(); | ||||
|         } | ||||
|     } | ||||
| } | ||||
							
								
								
									
										10
									
								
								FarmmapsHaulmkilling/appsettings.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								FarmmapsHaulmkilling/appsettings.json
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| { | ||||
|   "Authority": "https://accounts.farmmaps.awtest.nl/", | ||||
|   "Endpoint": "http://farmmaps.awtest.nl", | ||||
|   "BasePath": "api/v1", | ||||
|   "DiscoveryEndpointUrl": "https://accounts.farmmaps.awtest.nl/.well-known/openid-configuration", | ||||
|   "RedirectUri": "http://example.nl/api", | ||||
|   "ClientId": "", | ||||
|   "ClientSecret": "", | ||||
|   "Scopes": ["api"] | ||||
| } | ||||
		Reference in New Issue
	
	Block a user