Compare commits
28 Commits
cf2f5a20fd
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 81af585e5f | |||
| 13345520ac | |||
| 5f03bef2d3 | |||
| 42521a0e12 | |||
| 73f7e585bc | |||
| ecc60a9c8d | |||
| 05a79de31e | |||
| 3f0b736589 | |||
| 37d65c9c84 | |||
| 6a4a62672a | |||
| a33f626fb0 | |||
| 45c2dc2acf | |||
| a0cd811287 | |||
| ae2aab0556 | |||
| 3d034f3d4d | |||
| e390644d35 | |||
| 8ebab4f3fe | |||
| 6e45fee6c8 | |||
| 6d7e447ccc | |||
| 27bf5f0b24 | |||
| c96bbc3495 | |||
| 302862fee4 | |||
| 561f4f91aa | |||
| 5cfbc1e799 | |||
| 13d7db3a82 | |||
| 5e9c5d1c48 | |||
| b127f9d8d9 | |||
| ba18772576 |
19
Directory.Build.props
Normal file
19
Directory.Build.props
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<Project>
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net10.0</TargetFramework>
|
||||||
|
<LangVersion>latest</LangVersion>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>disable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectCapability Include="ConfigurableFileNesting" />
|
||||||
|
<ProjectCapability Include="ConfigurableFileNestingFeatureEnabled" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Update="@(Content)">
|
||||||
|
<Visible Condition="'%(NuGetItemType)' == 'Content'">false</Visible>
|
||||||
|
</Content>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
||||||
40
Directory.Packages.props
Normal file
40
Directory.Packages.props
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
<Project>
|
||||||
|
<PropertyGroup>
|
||||||
|
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
|
||||||
|
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageVersion Include="AutoMapper" Version="16.0.0" />
|
||||||
|
<PackageVersion Include="FluentValidation" Version="12.1.1" />
|
||||||
|
<PackageVersion Include="GerstITS.Authentication.OpenId" Version="2026.1.1" />
|
||||||
|
<PackageVersion Include="GerstITS.Common" Version="2025.12.1" />
|
||||||
|
<PackageVersion Include="GerstITS.Data" Version="2026.1.3" />
|
||||||
|
<PackageVersion Include="GerstITS.Data.EntityFramework" Version="2026.1.3" />
|
||||||
|
<PackageVersion Include="GerstITS.Data.EntityFramework.PostgreSql" Version="2026.1.1" />
|
||||||
|
<PackageVersion Include="GerstITS.IoC" Version="2025.12.1" />
|
||||||
|
<PackageVersion Include="GerstITS.IoC.DotNetCore" Version="2025.12.1" />
|
||||||
|
<PackageVersion Include="GerstITS.Job" Version="2025.12.1" />
|
||||||
|
<PackageVersion Include="GerstITS.Job.Scheduling" Version="2026.1.1" />
|
||||||
|
<PackageVersion Include="GerstITS.Mapping.AutoMapper" Version="2026.1.1" />
|
||||||
|
<PackageVersion Include="GerstITS.Search" Version="2026.1.1" />
|
||||||
|
<PackageVersion Include="GerstITS.System" Version="2026.1.1" />
|
||||||
|
<PackageVersion Include="GerstITS.Validation" Version="2026.1.1" />
|
||||||
|
<PackageVersion Include="GerstITS.Web" Version="2025.12.1" />
|
||||||
|
<PackageVersion Include="GerstITS.Web.Api" Version="2026.1.1" />
|
||||||
|
<PackageVersion Include="GerstITS.Web.Api.Swagger" Version="2026.1.4" />
|
||||||
|
<PackageVersion Include="GerstITS.Web.Rest" Version="2026.1.1" />
|
||||||
|
<PackageVersion Include="Hocon.Extensions.Configuration" Version="2.0.4" />
|
||||||
|
<PackageVersion Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="10.0.1" />
|
||||||
|
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="10.0.1" />
|
||||||
|
<PackageVersion Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.1" />
|
||||||
|
<PackageVersion Include="Microsoft.EntityFrameworkCore.Tools" Version="10.0.1" />
|
||||||
|
<PackageVersion Include="Microsoft.Extensions.Configuration.FileExtensions" Version="10.0.1" />
|
||||||
|
<PackageVersion Include="Microsoft.Extensions.Configuration.Json" Version="10.0.1" />
|
||||||
|
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="10.0.1" />
|
||||||
|
<PackageVersion Include="Newtonsoft.Json" Version="13.0.4" />
|
||||||
|
<PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="10.0.0" />
|
||||||
|
<PackageVersion Include="Serilog.AspNetCore" Version="10.0.0" />
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
||||||
@@ -1,9 +1,5 @@
|
|||||||
using System;
|
namespace GerstITS.Examples.Api.Configurations;
|
||||||
using System.Linq;
|
|
||||||
using Microsoft.Extensions.Configuration;
|
|
||||||
|
|
||||||
namespace GerstITS.Examples.Api.Configurations
|
|
||||||
{
|
|
||||||
public static class IConfigurationExtensions
|
public static class IConfigurationExtensions
|
||||||
{
|
{
|
||||||
#region Methods
|
#region Methods
|
||||||
@@ -26,4 +22,3 @@ namespace GerstITS.Examples.Api.Configurations
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
using GerstITS.Data.EntityFramework;
|
using GerstITS.Data.EntityFramework;
|
||||||
using GerstITS.System.Configurations;
|
using GerstITS.System.Configurations;
|
||||||
using Microsoft.Extensions.Configuration;
|
|
||||||
|
|
||||||
namespace GerstITS.Examples.Api.Configurations
|
namespace GerstITS.Examples.Api.Configurations;
|
||||||
{
|
|
||||||
internal sealed class EntityFrameworkMigrationConfiguration : IEntityFrameworkMigrationConfiguration
|
internal sealed class EntityFrameworkMigrationConfiguration : IEntityFrameworkMigrationConfiguration
|
||||||
{
|
{
|
||||||
#region Constructors
|
#region Constructors
|
||||||
@@ -24,4 +23,3 @@ namespace GerstITS.Examples.Api.Configurations
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
using GerstITS.Web.Api.Swagger;
|
using GerstITS.Web.Api.Swagger;
|
||||||
using Microsoft.Net.Http.Headers;
|
using Microsoft.Net.Http.Headers;
|
||||||
using Microsoft.OpenApi.Models;
|
using Microsoft.OpenApi;
|
||||||
|
|
||||||
|
namespace GerstITS.Examples.Api.Configurations;
|
||||||
|
|
||||||
namespace GerstITS.Examples.Api.Configurations
|
|
||||||
{
|
|
||||||
internal sealed class OpenApiSecuritySchemeConfiguration : IOpenApiSecuritySchemeConfiguration
|
internal sealed class OpenApiSecuritySchemeConfiguration : IOpenApiSecuritySchemeConfiguration
|
||||||
{
|
{
|
||||||
#region Properties
|
#region Properties
|
||||||
@@ -31,4 +31,3 @@ namespace GerstITS.Examples.Api.Configurations
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -1,8 +1,7 @@
|
|||||||
using GerstITS.Authentication.OpenId;
|
using GerstITS.Authentication.OpenId;
|
||||||
using Microsoft.Extensions.Configuration;
|
|
||||||
|
|
||||||
namespace GerstITS.Examples.Api.Configurations
|
namespace GerstITS.Examples.Api.Configurations;
|
||||||
{
|
|
||||||
internal class OpenIdValidationConfiguration : IOpenIdValidationConfiguration
|
internal class OpenIdValidationConfiguration : IOpenIdValidationConfiguration
|
||||||
{
|
{
|
||||||
#region Constructors
|
#region Constructors
|
||||||
@@ -15,7 +14,7 @@ namespace GerstITS.Examples.Api.Configurations
|
|||||||
Issuer = configuration.GetValue<string>($"{prefix}:{nameof(Issuer)}");
|
Issuer = configuration.GetValue<string>($"{prefix}:{nameof(Issuer)}");
|
||||||
Audience = configuration.GetValue<string>($"{prefix}:{nameof(Audience)}");
|
Audience = configuration.GetValue<string>($"{prefix}:{nameof(Audience)}");
|
||||||
RsaPublicKey = configuration.GetValue<string>($"{prefix}:{nameof(RsaPublicKey)}");
|
RsaPublicKey = configuration.GetValue<string>($"{prefix}:{nameof(RsaPublicKey)}");
|
||||||
RequiredClaimType = configuration.GetValue<string>($"{prefix}:{nameof(RequiredClaimType)}");
|
NameClaimType = configuration.GetValue<string>($"{prefix}:{nameof(NameClaimType)}");
|
||||||
ValidateLifetime = configuration.GetValue<bool>($"{prefix}:{nameof(ValidateLifetime)}");
|
ValidateLifetime = configuration.GetValue<bool>($"{prefix}:{nameof(ValidateLifetime)}");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,9 +25,8 @@ namespace GerstITS.Examples.Api.Configurations
|
|||||||
public string Issuer { get; }
|
public string Issuer { get; }
|
||||||
public string Audience { get; }
|
public string Audience { get; }
|
||||||
public string RsaPublicKey { get; }
|
public string RsaPublicKey { get; }
|
||||||
public string RequiredClaimType { get; }
|
public string NameClaimType { get; }
|
||||||
public bool ValidateLifetime { get; }
|
public bool ValidateLifetime { get; }
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
using GerstITS.Authentication.OpenId;
|
using GerstITS.Authentication.OpenId;
|
||||||
using GerstITS.System.Configurations;
|
using GerstITS.System.Configurations;
|
||||||
using Microsoft.Extensions.Configuration;
|
|
||||||
|
|
||||||
namespace GerstITS.Examples.Api.Configurations
|
namespace GerstITS.Examples.Api.Configurations;
|
||||||
{
|
|
||||||
internal class OpenIdConfiguration : IOpenIdConfiguration
|
internal class OpenIdConfiguration : IOpenIdConfiguration
|
||||||
{
|
{
|
||||||
#region Constructors
|
#region Constructors
|
||||||
@@ -32,4 +31,3 @@ namespace GerstITS.Examples.Api.Configurations
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
using GerstITS.System.Configurations;
|
using GerstITS.System.Configurations;
|
||||||
using GerstITS.Web.Api.Builder;
|
using GerstITS.Web.Api.Builder;
|
||||||
using Microsoft.Extensions.Configuration;
|
|
||||||
|
|
||||||
namespace GerstITS.Examples.Api.Configurations
|
namespace GerstITS.Examples.Api.Configurations;
|
||||||
{
|
|
||||||
internal sealed class CorsPolicyConfiguration : ICorsPolicy, GerstITS.System.Configurations.IConfiguration
|
internal sealed class CorsPolicyConfiguration : ICorsPolicy, GerstITS.System.Configurations.IConfiguration
|
||||||
{
|
{
|
||||||
#region Constructors
|
#region Constructors
|
||||||
@@ -29,4 +28,3 @@ namespace GerstITS.Examples.Api.Configurations
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -1,11 +1,10 @@
|
|||||||
using GerstITS.System.Configurations;
|
using GerstITS.System.Configurations;
|
||||||
using GerstITS.Web.Api.Builder;
|
using GerstITS.Web.Api.Builder;
|
||||||
using Microsoft.AspNetCore.Builder;
|
|
||||||
using Microsoft.AspNetCore.HttpOverrides;
|
using Microsoft.AspNetCore.HttpOverrides;
|
||||||
|
|
||||||
namespace GerstITS.Examples.Api.Configurations
|
namespace GerstITS.Examples.Api.Configurations;
|
||||||
{
|
|
||||||
internal sealed class WebApiHeadersConfiguration : IHeaderConfiguration, IConfiguration
|
internal sealed class WebApiHeadersConfiguration : IHeaderConfiguration, GerstITS.System.Configurations.IConfiguration
|
||||||
{
|
{
|
||||||
#region Constructors
|
#region Constructors
|
||||||
|
|
||||||
@@ -27,4 +26,3 @@ namespace GerstITS.Examples.Api.Configurations
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
using GerstITS.System.Configurations;
|
using GerstITS.System.Configurations;
|
||||||
using GerstITS.Web.Api.Builder;
|
using GerstITS.Web.Api.Builder;
|
||||||
using Microsoft.Extensions.Configuration;
|
|
||||||
|
|
||||||
namespace GerstITS.Examples.Api.Configurations
|
namespace GerstITS.Examples.Api.Configurations;
|
||||||
{
|
|
||||||
internal sealed class ServerConfiguration : IServerConfiguration
|
internal sealed class ServerConfiguration : IServerConfiguration
|
||||||
{
|
{
|
||||||
#region Constructors
|
#region Constructors
|
||||||
@@ -32,4 +31,3 @@ namespace GerstITS.Examples.Api.Configurations
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -1,10 +1,8 @@
|
|||||||
using System;
|
using GerstITS.System.Configurations;
|
||||||
using GerstITS.System.Configurations;
|
|
||||||
using GerstITS.Web.Api.Swagger;
|
using GerstITS.Web.Api.Swagger;
|
||||||
using Microsoft.Extensions.Configuration;
|
|
||||||
|
|
||||||
namespace GerstITS.Examples.Api.Configurations
|
namespace GerstITS.Examples.Api.Configurations;
|
||||||
{
|
|
||||||
internal sealed class LicenseConfiguration : ILicense, System.Configurations.IConfiguration
|
internal sealed class LicenseConfiguration : ILicense, System.Configurations.IConfiguration
|
||||||
{
|
{
|
||||||
#region Constructors
|
#region Constructors
|
||||||
@@ -26,4 +24,3 @@ namespace GerstITS.Examples.Api.Configurations
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -1,11 +1,10 @@
|
|||||||
using System;
|
using System.Diagnostics;
|
||||||
using System.Diagnostics;
|
using GerstITS.Common;
|
||||||
using GerstITS.System.Configurations;
|
using GerstITS.System.Configurations;
|
||||||
using GerstITS.Web.Api.Swagger;
|
using GerstITS.Web.Api.Swagger;
|
||||||
using Microsoft.Extensions.Configuration;
|
|
||||||
|
|
||||||
namespace GerstITS.Examples.Api.Configurations
|
namespace GerstITS.Examples.Api.Configurations;
|
||||||
{
|
|
||||||
internal sealed class SwaggerConfiguration : ISwaggerConfiguration
|
internal sealed class SwaggerConfiguration : ISwaggerConfiguration
|
||||||
{
|
{
|
||||||
#region Constructors
|
#region Constructors
|
||||||
@@ -25,7 +24,8 @@ namespace GerstITS.Examples.Api.Configurations
|
|||||||
|
|
||||||
Release = currentAssembly.GetName().Version;
|
Release = currentAssembly.GetName().Version;
|
||||||
License = new LicenseConfiguration(prefix, configuration);
|
License = new LicenseConfiguration(prefix, configuration);
|
||||||
Security = new OpenApiSecuritySchemeConfiguration();
|
Securities = new OpenApiSecuritySchemeConfiguration().AsEnumerable()
|
||||||
|
.ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
@@ -37,9 +37,8 @@ namespace GerstITS.Examples.Api.Configurations
|
|||||||
public string SupportEMail { get; }
|
public string SupportEMail { get; }
|
||||||
public Uri TermsOfService { get; }
|
public Uri TermsOfService { get; }
|
||||||
public Version Release { get; }
|
public Version Release { get; }
|
||||||
|
public IEnumerable<IOpenApiSecuritySchemeConfiguration> Securities { get; }
|
||||||
public ILicense License { get; }
|
public ILicense License { get; }
|
||||||
public IOpenApiSecuritySchemeConfiguration Security { get; }
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -4,9 +4,9 @@ using GerstITS.System.Configurations;
|
|||||||
using GerstITS.Web.Api.Builder;
|
using GerstITS.Web.Api.Builder;
|
||||||
using GerstITS.Web.Api.Swagger;
|
using GerstITS.Web.Api.Swagger;
|
||||||
|
|
||||||
namespace GerstITS.Examples.Api.Configurations
|
namespace GerstITS.Examples.Api.Configurations;
|
||||||
{
|
|
||||||
internal sealed class WebApiConfiguration : IConfiguration
|
internal sealed class WebApiConfiguration : GerstITS.System.Configurations.IConfiguration
|
||||||
{
|
{
|
||||||
#region Properties
|
#region Properties
|
||||||
|
|
||||||
@@ -24,11 +24,10 @@ namespace GerstITS.Examples.Api.Configurations
|
|||||||
var prefix = this.ToConfigurationPrefix();
|
var prefix = this.ToConfigurationPrefix();
|
||||||
|
|
||||||
EntityFrameworkMigration = new EntityFrameworkMigrationConfiguration(prefix, configuration);
|
EntityFrameworkMigration = new EntityFrameworkMigrationConfiguration(prefix, configuration);
|
||||||
OpenId = new OpenIdConfiguration(prefix, configuration);
|
//OpenId = new OpenIdConfiguration(prefix, configuration);
|
||||||
Server = new ServerConfiguration(prefix, configuration);
|
Server = new ServerConfiguration(prefix, configuration);
|
||||||
Swagger = new SwaggerConfiguration(prefix, configuration);
|
Swagger = new SwaggerConfiguration(prefix, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -2,10 +2,12 @@
|
|||||||
using GerstITS.Data;
|
using GerstITS.Data;
|
||||||
using GerstITS.Web.Api.ExceptionHandling;
|
using GerstITS.Web.Api.ExceptionHandling;
|
||||||
|
|
||||||
namespace GerstITS.Examples.Api.ExceptionHandling
|
namespace GerstITS.Examples.Api.ExceptionHandling;
|
||||||
{
|
|
||||||
public class EntityNotFoundExceptionTransformation : ExceptionTransformationBase<EntityNotFoundException>
|
public class EntityNotFoundExceptionTransformation : ExceptionTransformationBase<EntityNotFoundException>
|
||||||
{
|
{
|
||||||
|
#region Methods
|
||||||
|
|
||||||
protected override ExceptionTransformationInfo CreateExceptionTransformationInfo(EntityNotFoundException exception, string ticketId)
|
protected override ExceptionTransformationInfo CreateExceptionTransformationInfo(EntityNotFoundException exception, string ticketId)
|
||||||
{
|
{
|
||||||
return new ExceptionTransformationInfo
|
return new ExceptionTransformationInfo
|
||||||
@@ -15,5 +17,6 @@ namespace GerstITS.Examples.Api.ExceptionHandling
|
|||||||
Details = exception.Message
|
Details = exception.Message
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
@@ -2,8 +2,8 @@
|
|||||||
using System.Net;
|
using System.Net;
|
||||||
using GerstITS.Web.Api.ExceptionHandling;
|
using GerstITS.Web.Api.ExceptionHandling;
|
||||||
|
|
||||||
namespace GerstITS.Examples.Api.ExceptionHandling
|
namespace GerstITS.Examples.Api.ExceptionHandling;
|
||||||
{
|
|
||||||
internal sealed class ValidationExceptionTransformation : ExceptionTransformationBase<ValidationException>
|
internal sealed class ValidationExceptionTransformation : ExceptionTransformationBase<ValidationException>
|
||||||
{
|
{
|
||||||
#region Methods
|
#region Methods
|
||||||
@@ -20,4 +20,3 @@ namespace GerstITS.Examples.Api.ExceptionHandling
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ using GerstITS.Examples.Logic.Example;
|
|||||||
using GerstITS.IoC;
|
using GerstITS.IoC;
|
||||||
using GerstITS.System.Json;
|
using GerstITS.System.Json;
|
||||||
|
|
||||||
namespace GerstITS.Examples.Api.StartupTasks
|
namespace GerstITS.Examples.Api.StartupTasks;
|
||||||
{
|
|
||||||
internal class ExampleStartupTask : IStartupTask
|
internal class ExampleStartupTask : IStartupTask
|
||||||
{
|
{
|
||||||
#region Fields#
|
#region Fields#
|
||||||
@@ -36,4 +36,3 @@ namespace GerstITS.Examples.Api.StartupTasks
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace GerstITS.Examples.Api.Versioning
|
namespace GerstITS.Examples.Api.Versioning;
|
||||||
{
|
|
||||||
public static class Versions
|
public static class Versions
|
||||||
{
|
{
|
||||||
#region Versions
|
#region Versions
|
||||||
@@ -9,4 +9,3 @@
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -1,12 +1,13 @@
|
|||||||
using GerstITS.Examples.Api.Versioning;
|
using Asp.Versioning;
|
||||||
|
using GerstITS.Examples.Api.Versioning;
|
||||||
using GerstITS.Examples.Logic.Example;
|
using GerstITS.Examples.Logic.Example;
|
||||||
using GerstITS.Validation;
|
using GerstITS.Validation;
|
||||||
using GerstITS.Web.Api;
|
using GerstITS.Web.Api;
|
||||||
using GerstITS.Web.Api.FluentApi;
|
using GerstITS.Web.Api.FluentApi;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
namespace GerstITS.Examples.Api.Controllers
|
namespace GerstITS.Examples.Api.Controllers;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Controller is deprecated use newer version.
|
/// Controller is deprecated use newer version.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -49,4 +50,3 @@ namespace GerstITS.Examples.Api.Controllers
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
using GerstITS.Examples.Api.Versioning;
|
using Asp.Versioning;
|
||||||
|
using GerstITS.Examples.Api.Versioning;
|
||||||
using GerstITS.Examples.Logic.Example;
|
using GerstITS.Examples.Logic.Example;
|
||||||
using GerstITS.Validation;
|
using GerstITS.Validation;
|
||||||
using GerstITS.Web.Api;
|
using GerstITS.Web.Api;
|
||||||
using GerstITS.Web.Api.FluentApi;
|
using GerstITS.Web.Api.FluentApi;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
namespace GerstITS.Examples.Api.Controllers._1._1
|
namespace GerstITS.Examples.Api.Controllers._1._1;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Is responsible to get employee organization assignment examples.
|
/// Is responsible to get employee organization assignment examples.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -49,4 +50,3 @@ namespace GerstITS.Examples.Api.Controllers._1._1
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -0,0 +1,72 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<Company>Gerst ITS</Company>
|
||||||
|
<Authors>Gerst ITS</Authors>
|
||||||
|
<Copyright>© 2021 Gerst ITS</Copyright>
|
||||||
|
<Authors>Gerst ITS</Authors>
|
||||||
|
<Product>Gerst ITS Examples Web Api</Product>
|
||||||
|
<Description>Exapmle Web Api</Description>
|
||||||
|
<Version>0.0.0.0</Version>
|
||||||
|
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||||
|
<AssemblyInformationalVersion>0.0.0.0</AssemblyInformationalVersion>
|
||||||
|
<FileVersion>0.0.0.0</FileVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
|
<LangVersion>latest</LangVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
|
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
|
||||||
|
<WarningsAsErrors />
|
||||||
|
<NoWarn>1591</NoWarn>
|
||||||
|
<DocumentationFile>bin\Release\net5.0\GerstITS.Example.Api.xml</DocumentationFile>
|
||||||
|
<OutputPath></OutputPath>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
||||||
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
|
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
|
||||||
|
<WarningsAsErrors />
|
||||||
|
<NoWarn>1591</NoWarn>
|
||||||
|
<DocumentationFile>bin\Release\net5.0\GerstITS.Example.Api.xml</DocumentationFile>
|
||||||
|
<OutputPath></OutputPath>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="GerstITS.Authentication.OpenId" Version="2022.11.5" />
|
||||||
|
<PackageReference Include="GerstITS.Common" Version="2022.11.5" />
|
||||||
|
<PackageReference Include="GerstITS.Data" Version="2022.11.5" />
|
||||||
|
<PackageReference Include="GerstITS.Data.EntityFramework" Version="2022.11.5" />
|
||||||
|
<PackageReference Include="GerstITS.IoC" Version="2022.11.5" />
|
||||||
|
<PackageReference Include="GerstITS.IoC.DotNetCore" Version="2022.11.5" />
|
||||||
|
<PackageReference Include="GerstITS.Job" Version="2022.11.5" />
|
||||||
|
<PackageReference Include="GerstITS.Job.Scheduling" Version="2022.11.5" />
|
||||||
|
<PackageReference Include="GerstITS.Logging.Serilog" Version="2022.3.3" />
|
||||||
|
<PackageReference Include="GerstITS.Mapping.AutoMapper" Version="2022.3.3" />
|
||||||
|
<PackageReference Include="GerstITS.Search" Version="2022.3.3" />
|
||||||
|
<PackageReference Include="GerstITS.System" Version="2022.3.3" />
|
||||||
|
<PackageReference Include="GerstITS.Validation" Version="2022.3.3" />
|
||||||
|
<PackageReference Include="GerstITS.Web" Version="2022.3.3" />
|
||||||
|
<PackageReference Include="GerstITS.Web.Api" Version="2022.3.4" />
|
||||||
|
<PackageReference Include="GerstITS.Web.Api.Swagger" Version="2022.3.4" />
|
||||||
|
<PackageReference Include="GerstITS.Web.Rest" Version="2022.3.3" />
|
||||||
|
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.3" />
|
||||||
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.3">
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
|
||||||
|
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0" />
|
||||||
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\GerstITS.Examples.Jobs.SayHelloWorld\GerstITS.Examples.Jobs.SayHelloWorld.csproj" />
|
||||||
|
<ProjectReference Include="..\GerstITS.Examples.Logic\GerstITS.Examples.Logic.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Company>Gerst ITS</Company>
|
<Company>Gerst ITS</Company>
|
||||||
<Authors>Gerst ITS</Authors>
|
<Authors>Gerst ITS</Authors>
|
||||||
<Copyright>© 2021 Gerst ITS</Copyright>
|
<Copyright>© 2025 Gerst ITS</Copyright>
|
||||||
<Authors>Gerst ITS</Authors>
|
<Authors>Gerst ITS</Authors>
|
||||||
<Product>Gerst ITS Examples Web Api</Product>
|
<Product>Gerst ITS Examples Web Api</Product>
|
||||||
<Description>Exapmle Web Api</Description>
|
<Description>Exapmle Web Api</Description>
|
||||||
@@ -13,17 +13,12 @@
|
|||||||
<FileVersion>0.0.0.0</FileVersion>
|
<FileVersion>0.0.0.0</FileVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<TargetFramework>net5.0</TargetFramework>
|
|
||||||
<LangVersion>latest</LangVersion>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
|
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
|
||||||
<WarningsAsErrors />
|
<WarningsAsErrors />
|
||||||
<NoWarn>1591</NoWarn>
|
<NoWarn>1591</NoWarn>
|
||||||
<DocumentationFile>bin\Release\net5.0\GerstITS.Example.Api.xml</DocumentationFile>
|
<DocumentationFile>bin\Release\net8.0\GerstITS.Example.Api.xml</DocumentationFile>
|
||||||
<OutputPath></OutputPath>
|
<OutputPath></OutputPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
@@ -32,36 +27,34 @@
|
|||||||
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
|
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
|
||||||
<WarningsAsErrors />
|
<WarningsAsErrors />
|
||||||
<NoWarn>1591</NoWarn>
|
<NoWarn>1591</NoWarn>
|
||||||
<DocumentationFile>bin\Release\net5.0\GerstITS.Example.Api.xml</DocumentationFile>
|
<DocumentationFile>bin\Release\net8.0\GerstITS.Example.Api.xml</DocumentationFile>
|
||||||
<OutputPath></OutputPath>
|
<OutputPath></OutputPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="GerstITS.Authentication.OpenId" Version="2021.7.21" />
|
<PackageReference Include="GerstITS.Authentication.OpenId" />
|
||||||
<PackageReference Include="GerstITS.Common" Version="2021.6.24" />
|
<PackageReference Include="GerstITS.Common" />
|
||||||
<PackageReference Include="GerstITS.Data" Version="2021.7.12" />
|
<PackageReference Include="GerstITS.Data" />
|
||||||
<PackageReference Include="GerstITS.Data.EntityFramework" Version="2021.7.23" />
|
<PackageReference Include="GerstITS.Data.EntityFramework" />
|
||||||
<PackageReference Include="GerstITS.IoC" Version="2021.7.17" />
|
<PackageReference Include="GerstITS.IoC" />
|
||||||
<PackageReference Include="GerstITS.IoC.DotNetCore" Version="2021.7.21" />
|
<PackageReference Include="GerstITS.IoC.DotNetCore" />
|
||||||
<PackageReference Include="GerstITS.Job" Version="2021.6.17" />
|
<PackageReference Include="GerstITS.Job" />
|
||||||
<PackageReference Include="GerstITS.Job.Scheduling" Version="2021.6.17" />
|
<PackageReference Include="GerstITS.Job.Scheduling" />
|
||||||
<PackageReference Include="GerstITS.Logging.Serilog" Version="2021.6.25" />
|
<PackageReference Include="GerstITS.Mapping.AutoMapper" />
|
||||||
<PackageReference Include="GerstITS.Mapping.AutoMapper" Version="2021.6.21" />
|
<PackageReference Include="GerstITS.Search" />
|
||||||
<PackageReference Include="GerstITS.Search" Version="2021.6.17" />
|
<PackageReference Include="GerstITS.System" />
|
||||||
<PackageReference Include="GerstITS.System" Version="2021.7.20" />
|
<PackageReference Include="GerstITS.Validation" />
|
||||||
<PackageReference Include="GerstITS.Validation" Version="2021.7.18" />
|
<PackageReference Include="GerstITS.Web" />
|
||||||
<PackageReference Include="GerstITS.Web" Version="2021.6.17" />
|
<PackageReference Include="GerstITS.Web.Api" />
|
||||||
<PackageReference Include="GerstITS.Web.Api" Version="2021.7.21" />
|
<PackageReference Include="GerstITS.Web.Api.Swagger" />
|
||||||
<PackageReference Include="GerstITS.Web.Api.Swagger" Version="2021.7.20" />
|
<PackageReference Include="GerstITS.Web.Rest" />
|
||||||
<PackageReference Include="GerstITS.Web.Rest" Version="2021.6.17" />
|
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="5.0.8" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools">
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="5.0.8">
|
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.2" />
|
<PackageReference Include="Newtonsoft.Json" />
|
||||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="5.0.0" />
|
<PackageReference Include="Serilog.AspNetCore" />
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@@ -69,4 +62,8 @@
|
|||||||
<ProjectReference Include="..\GerstITS.Examples.Logic\GerstITS.Examples.Logic.csproj" />
|
<ProjectReference Include="..\GerstITS.Examples.Logic\GerstITS.Examples.Logic.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Folder Include="wwwroot\" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
using GerstITS.Examples.Api.Configurations;
|
using GerstITS.Examples.Api.Configurations;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
|
||||||
|
|
||||||
namespace GerstITS.Examples.Api
|
namespace GerstITS.Examples.Api;
|
||||||
{
|
|
||||||
public sealed partial class Module
|
public sealed partial class Module
|
||||||
{
|
{
|
||||||
#region Methods
|
#region Methods
|
||||||
@@ -19,4 +18,3 @@ namespace GerstITS.Examples.Api
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
using GerstITS.Examples.Api.ExceptionHandling;
|
using GerstITS.Examples.Api.ExceptionHandling;
|
||||||
using GerstITS.Web.Api.ExceptionHandling.Extensions;
|
using GerstITS.Web.Api.ExceptionHandling.Extensions;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
|
||||||
|
|
||||||
namespace GerstITS.Examples.Api
|
namespace GerstITS.Examples.Api;
|
||||||
{
|
|
||||||
public sealed partial class Module
|
public sealed partial class Module
|
||||||
{
|
{
|
||||||
#region Methods
|
#region Methods
|
||||||
@@ -15,4 +14,3 @@ namespace GerstITS.Examples.Api
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
|
||||||
|
|
||||||
namespace GerstITS.Examples.Api
|
|
||||||
{
|
|
||||||
public sealed partial class Module
|
|
||||||
{
|
|
||||||
#region Methods
|
|
||||||
|
|
||||||
private static void RegisterMvc(IServiceCollection container)
|
|
||||||
{
|
|
||||||
//container.AddTransient<IConfigureOptions<MvcOptions>, ApiMvcOptions>();
|
|
||||||
//container.AddTransient<IConfigureOptions<MvcNewtonsoftJsonOptions>, MvcJsonOptions>();
|
|
||||||
|
|
||||||
container.AddMvc()
|
|
||||||
.AddNewtonsoftJson()
|
|
||||||
.SetCompatibilityVersion(CompatibilityVersion.Latest);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
using GerstITS.Examples.Api.StartupTasks;
|
using GerstITS.Examples.Api.StartupTasks;
|
||||||
using GerstITS.IoC.DotNetCore;
|
using GerstITS.IoC.DotNetCore;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
|
||||||
|
|
||||||
namespace GerstITS.Examples.Api
|
namespace GerstITS.Examples.Api;
|
||||||
{
|
|
||||||
public sealed partial class Module
|
public sealed partial class Module
|
||||||
{
|
{
|
||||||
#region Methods
|
#region Methods
|
||||||
@@ -15,4 +14,3 @@ namespace GerstITS.Examples.Api
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -1,8 +1,7 @@
|
|||||||
using GerstITS.IoC;
|
using GerstITS.IoC;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
|
||||||
|
|
||||||
namespace GerstITS.Examples.Api
|
namespace GerstITS.Examples.Api;
|
||||||
{
|
|
||||||
public sealed partial class Module : IIoCModule<IServiceCollection>
|
public sealed partial class Module : IIoCModule<IServiceCollection>
|
||||||
{
|
{
|
||||||
#region IIoCModule
|
#region IIoCModule
|
||||||
@@ -11,10 +10,8 @@ namespace GerstITS.Examples.Api
|
|||||||
{
|
{
|
||||||
RegisterConfigurations(container);
|
RegisterConfigurations(container);
|
||||||
RegisterExceptionHandling(container);
|
RegisterExceptionHandling(container);
|
||||||
RegisterMvc(container);
|
|
||||||
RegisterStartupTasks(container);
|
RegisterStartupTasks(container);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,23 +1,42 @@
|
|||||||
using GerstITS.Logging.Serilog;
|
using System.Diagnostics;
|
||||||
|
using GerstITS.Web.Api;
|
||||||
using GerstITS.Web.Api.Hosting;
|
using GerstITS.Web.Api.Hosting;
|
||||||
|
using GerstITS.Web.Api.Swagger;
|
||||||
|
using Serilog;
|
||||||
|
|
||||||
namespace GerstITS.Examples.Api
|
namespace GerstITS.Examples.Api;
|
||||||
{
|
|
||||||
public class Program : ProgramBase<Program>
|
public class Program
|
||||||
{
|
{
|
||||||
#region Methods
|
#region Methods
|
||||||
|
|
||||||
public static void Main(string[] args)
|
public static void Main(string[] args)
|
||||||
{
|
{
|
||||||
BootstrapLogContext.Execute<Program>(_ => Run(args));
|
HostingStartup.Use(args)
|
||||||
}
|
.Host()
|
||||||
|
.UseSerilog((context, configuration) => {
|
||||||
|
configuration.ReadFrom.Configuration(context.Configuration);
|
||||||
|
|
||||||
protected override void ConfigureWebHost(IWebHostBuilder webHostBuilder)
|
if (Common.ApplicationEnvironment.IsEfCoreActionStarted)
|
||||||
{
|
Debug.WriteLine("==========>>>>>>> Do NOT start Application!!!!");
|
||||||
webHostBuilder.UseLogging()
|
})
|
||||||
.UseStartup<Startup>();
|
.Services()
|
||||||
|
.Build()
|
||||||
|
.IfProduction(app => app.UsePreconfiguredHsts())
|
||||||
|
.IfDevelopment(app => app.UseDeveloperExceptionPage()
|
||||||
|
.UsePreconfiguredSwagger())
|
||||||
|
.UsePreconfiguredCors()
|
||||||
|
.UsePreconfiguredForwardedHeaders()
|
||||||
|
.UsePreconfiguredHttpsRedirection()
|
||||||
|
.UseAuthentication()
|
||||||
|
.UseAuthorization()
|
||||||
|
.UseRouting()
|
||||||
|
.UseEndpoints(endpoints => endpoints.MapControllers())
|
||||||
|
.UseRewriteUnknownPathsToIndexSite(ApplicationEnvironment.WebApi.BaseUrl)
|
||||||
|
.UseSystemIndependentStaticFiles()
|
||||||
|
.UseSerilogRequestLogging()
|
||||||
|
.Run();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -14,6 +14,14 @@
|
|||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"GerstITS.Examples.Api": {
|
||||||
|
"commandName": "Project",
|
||||||
|
"launchBrowser": false,
|
||||||
|
"environmentVariables": {
|
||||||
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
},
|
||||||
|
"applicationUrl": "https://localhost:5001;http://localhost:5000"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
using GerstITS.Web.Api;
|
|
||||||
using GerstITS.Web.Api.Hosting;
|
|
||||||
using Microsoft.AspNetCore.Builder;
|
|
||||||
using Microsoft.AspNetCore.Hosting;
|
|
||||||
using Microsoft.Extensions.Hosting;
|
|
||||||
|
|
||||||
namespace GerstITS.Examples.Api
|
|
||||||
{
|
|
||||||
public class Startup : BootstrapperStartupBase
|
|
||||||
{
|
|
||||||
#region Methods
|
|
||||||
|
|
||||||
protected override void ConfigureApplication(IApplicationBuilder applicationBuilder, IWebHostEnvironment webHostEnvironment)
|
|
||||||
{
|
|
||||||
if (webHostEnvironment.IsProduction())
|
|
||||||
applicationBuilder.UsePreconfiguredHsts();
|
|
||||||
else
|
|
||||||
applicationBuilder.UseDeveloperExceptionPage()
|
|
||||||
.UseSwagger();
|
|
||||||
|
|
||||||
applicationBuilder.UsePreconfiguredCors()
|
|
||||||
.UsePreconfiguredForwardedHeaders()
|
|
||||||
.UsePreconfiguredHttpsRedirection()
|
|
||||||
.UseAuthentication()
|
|
||||||
.UseAuthorization()
|
|
||||||
.UseRouting()
|
|
||||||
.UseEndpoints(endpoints => endpoints.MapControllers())
|
|
||||||
.UseRewriteUnknownPathsToIndexSite(ApplicationEnvironment.WebApi.BaseUrl)
|
|
||||||
.UseSystemIndependentStaticFiles();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
"Swagger": {
|
"Swagger": {
|
||||||
"SupportEMail": "support@example.com",
|
"SupportEMail": "support@example.com",
|
||||||
"TermsOfService": "https://www.example.com/impressum/",
|
"TermsOfService": "https://www.example.com/impressum/",
|
||||||
"Licence": {
|
"License": {
|
||||||
"Name": "MIT",
|
"Name": "MIT",
|
||||||
"Url": "https://opensource.org/licenses/MIT"
|
"Url": "https://opensource.org/licenses/MIT"
|
||||||
}
|
}
|
||||||
@@ -64,15 +64,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"NotifyOvenJob": {
|
"Jobs": {
|
||||||
"CronExpression": "*/30 * * * * ? *"
|
|
||||||
},
|
|
||||||
"SayHelloWorldJob": {
|
"SayHelloWorldJob": {
|
||||||
"CronExpression": "*/30 * * * * ? *",
|
"CronExpression": "*/30 * * * * ? *",
|
||||||
"Name": "Example Job"
|
"Name": "Example Job With Specific Name"
|
||||||
|
},
|
||||||
|
"SayHelloWorldWithDefaultNameUsageJob": {
|
||||||
|
"CronExpression": "*/30 * * * * ? *"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"Serilog": {
|
"Serilog": {
|
||||||
"Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.RollingFile" ],
|
|
||||||
"MinimumLevel": {
|
"MinimumLevel": {
|
||||||
"Default": "Debug",
|
"Default": "Debug",
|
||||||
"Override": {
|
"Override": {
|
||||||
@@ -88,11 +89,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Name": "RollingFile",
|
"Name": "File",
|
||||||
"Args": {
|
"Args": {
|
||||||
"pathFormat": "bin/Debug/net5.0/Logs/{Date}.log.json",
|
"path": "../Logs/.log",
|
||||||
"formatter": "Serilog.Formatting.Compact.CompactJsonFormatter, Serilog",
|
|
||||||
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] [{SourceContext}] [{EventId}] {Message}{NewLine}{Exception}",
|
|
||||||
"retainedFileCountLimit": 90,
|
"retainedFileCountLimit": 90,
|
||||||
"rollingInterval": "Day",
|
"rollingInterval": "Day",
|
||||||
"shared": true
|
"shared": true
|
||||||
|
|||||||
@@ -1,27 +1,15 @@
|
|||||||
using GerstITS.Job.Scheduling;
|
using GerstITS.Job.Scheduling;
|
||||||
using GerstITS.System.Configurations;
|
|
||||||
using Microsoft.Extensions.Configuration;
|
|
||||||
|
|
||||||
namespace GerstITS.Examples.Jobs.SayHelloWorld.Configurations
|
namespace GerstITS.Examples.Jobs.SayHelloWorld.Configurations;
|
||||||
{
|
|
||||||
public class SayHelloWorldJobConfiguration : JobSchedulingConfigurationBase
|
public class SayHelloWorldJobConfiguration : JobSchedulingConfigurationBase
|
||||||
{
|
{
|
||||||
#region Properties
|
|
||||||
|
|
||||||
public string Name { get; }
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region Constructors
|
#region Constructors
|
||||||
|
|
||||||
public SayHelloWorldJobConfiguration(Microsoft.Extensions.Configuration.IConfiguration configuration)
|
public SayHelloWorldJobConfiguration(Microsoft.Extensions.Configuration.IConfiguration configuration)
|
||||||
: base(configuration)
|
: base(configuration)
|
||||||
{
|
{
|
||||||
var prefix = this.ToConfigurationPrefix();
|
|
||||||
|
|
||||||
Name = configuration.GetValue<string>($"{prefix}:{nameof(Name)}");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
using GerstITS.Job.Scheduling;
|
||||||
|
|
||||||
|
namespace GerstITS.Examples.Jobs.SayHelloWorld.Configurations;
|
||||||
|
|
||||||
|
public class SayHelloWorldWithDefaultNameUsageJobConfiguration : JobSchedulingConfigurationBase
|
||||||
|
{
|
||||||
|
#region Constructors
|
||||||
|
|
||||||
|
public SayHelloWorldWithDefaultNameUsageJobConfiguration(Microsoft.Extensions.Configuration.IConfiguration configuration)
|
||||||
|
: base(configuration)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Company>Gerst ITS</Company>
|
<Company>Gerst ITS</Company>
|
||||||
<Authors>Gerst ITS</Authors>
|
<Authors>Gerst ITS</Authors>
|
||||||
<Copyright>© 2021 Gerst ITS</Copyright>
|
<Copyright>© 2025 Gerst ITS</Copyright>
|
||||||
<Product>Gerst ITS Examples Job</Product>
|
<Product>Gerst ITS Examples Job</Product>
|
||||||
<Description>Exapmle job.</Description>
|
<Description>Exapmle job.</Description>
|
||||||
<Version>0.0.0.0</Version>
|
<Version>0.0.0.0</Version>
|
||||||
@@ -12,11 +12,6 @@
|
|||||||
<FileVersion>0.0.0.0</FileVersion>
|
<FileVersion>0.0.0.0</FileVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<TargetFramework>net5.0</TargetFramework>
|
|
||||||
<LangVersion>latest</LangVersion>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
|
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
|
||||||
@@ -32,18 +27,17 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="GerstITS.Data" Version="2021.7.12" />
|
<PackageReference Include="GerstITS.Data" />
|
||||||
<PackageReference Include="GerstITS.IoC" Version="2021.7.17" />
|
<PackageReference Include="GerstITS.IoC" />
|
||||||
<PackageReference Include="GerstITS.IoC.DotNetCore" Version="2021.7.21" />
|
<PackageReference Include="GerstITS.IoC.DotNetCore" />
|
||||||
<PackageReference Include="GerstITS.Job" Version="2021.6.17" />
|
<PackageReference Include="GerstITS.Job" />
|
||||||
<PackageReference Include="GerstITS.Job.Scheduling" Version="2021.6.17" />
|
<PackageReference Include="GerstITS.Job.Scheduling" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.8" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Update="Module.Jobs.cs">
|
<ProjectCapability Include="ConfigurableFileNesting" />
|
||||||
<DependentUpon>Module.cs</DependentUpon>
|
<ProjectCapability Include="ConfigurableFileNestingFeatureEnabled" />
|
||||||
</Compile>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -1,13 +1,11 @@
|
|||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Threading;
|
|
||||||
using GerstITS.Data;
|
|
||||||
using GerstITS.Examples.Jobs.SayHelloWorld.Configurations;
|
using GerstITS.Examples.Jobs.SayHelloWorld.Configurations;
|
||||||
using GerstITS.Job;
|
using GerstITS.Job;
|
||||||
using GerstITS.System.Environment;
|
using GerstITS.System.Environment;
|
||||||
using Quartz;
|
using Quartz;
|
||||||
|
|
||||||
namespace GerstITS.Examples.Jobs.SayHelloWorld.Jobs
|
namespace GerstITS.Examples.Jobs.SayHelloWorld.Jobs;
|
||||||
{
|
|
||||||
[DisallowConcurrentExecution]
|
[DisallowConcurrentExecution]
|
||||||
public class SayHelloWorldJob : JobBase
|
public class SayHelloWorldJob : JobBase
|
||||||
{
|
{
|
||||||
@@ -15,19 +13,14 @@ namespace GerstITS.Examples.Jobs.SayHelloWorld.Jobs
|
|||||||
|
|
||||||
private readonly SayHelloWorldJobConfiguration _configuration;
|
private readonly SayHelloWorldJobConfiguration _configuration;
|
||||||
private readonly Stopwatch _stopWatch;
|
private readonly Stopwatch _stopWatch;
|
||||||
private readonly IRepository _repository;
|
|
||||||
private readonly ISystemClock _systemClock;
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Cosntructors
|
#region Cosntructors
|
||||||
|
|
||||||
public SayHelloWorldJob(SayHelloWorldJobConfiguration configuration,
|
public SayHelloWorldJob(SayHelloWorldJobConfiguration configuration,
|
||||||
IRepository repository,
|
|
||||||
ISystemClock systemClock)
|
ISystemClock systemClock)
|
||||||
{
|
{
|
||||||
_systemClock = systemClock;
|
|
||||||
_repository = repository;
|
|
||||||
_configuration = configuration;
|
_configuration = configuration;
|
||||||
_stopWatch = new Stopwatch();
|
_stopWatch = new Stopwatch();
|
||||||
}
|
}
|
||||||
@@ -40,7 +33,6 @@ namespace GerstITS.Examples.Jobs.SayHelloWorld.Jobs
|
|||||||
{
|
{
|
||||||
_stopWatch.Restart();
|
_stopWatch.Restart();
|
||||||
Thread.Sleep(4000);
|
Thread.Sleep(4000);
|
||||||
var now = _systemClock.UtcNow;
|
|
||||||
|
|
||||||
_stopWatch.Stop();
|
_stopWatch.Stop();
|
||||||
Debug.WriteLine($"---> Say hello to world from {_configuration.Name}, Duration: {_stopWatch.ElapsedMilliseconds / 1000}s");
|
Debug.WriteLine($"---> Say hello to world from {_configuration.Name}, Duration: {_stopWatch.ElapsedMilliseconds / 1000}s");
|
||||||
@@ -48,4 +40,3 @@ namespace GerstITS.Examples.Jobs.SayHelloWorld.Jobs
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
using System.Diagnostics;
|
||||||
|
using GerstITS.Examples.Jobs.SayHelloWorld.Configurations;
|
||||||
|
using GerstITS.Job;
|
||||||
|
using Quartz;
|
||||||
|
|
||||||
|
namespace GerstITS.Examples.Jobs.SayHelloWorld.Jobs;
|
||||||
|
|
||||||
|
[DisallowConcurrentExecution]
|
||||||
|
public class SayHelloWorldWithDefaultNameUsageJob : JobBase
|
||||||
|
{
|
||||||
|
#region Fields
|
||||||
|
|
||||||
|
private readonly SayHelloWorldWithDefaultNameUsageJobConfiguration _configuration;
|
||||||
|
private readonly Stopwatch _stopWatch;
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Cosntructors
|
||||||
|
|
||||||
|
public SayHelloWorldWithDefaultNameUsageJob(SayHelloWorldWithDefaultNameUsageJobConfiguration configuration)
|
||||||
|
{
|
||||||
|
_configuration = configuration;
|
||||||
|
_stopWatch = new Stopwatch();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Methods
|
||||||
|
|
||||||
|
protected override void Execute()
|
||||||
|
{
|
||||||
|
_stopWatch.Restart();
|
||||||
|
Thread.Sleep(4000);
|
||||||
|
|
||||||
|
_stopWatch.Stop();
|
||||||
|
Debug.WriteLine($"---> Say hello to world from {_configuration.Name}, Duration: {_stopWatch.ElapsedMilliseconds / 1000}s");
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
@@ -4,8 +4,8 @@ using GerstITS.IoC;
|
|||||||
using GerstITS.Job.Scheduling;
|
using GerstITS.Job.Scheduling;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
|
||||||
namespace GerstITS.Examples.Jobs.SayHelloWorld
|
namespace GerstITS.Examples.Jobs.SayHelloWorld;
|
||||||
{
|
|
||||||
public sealed class Module : IIoCModule<IServiceCollection>
|
public sealed class Module : IIoCModule<IServiceCollection>
|
||||||
{
|
{
|
||||||
#region IIoCModule
|
#region IIoCModule
|
||||||
@@ -17,4 +17,3 @@ namespace GerstITS.Examples.Jobs.SayHelloWorld
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace GerstITS.Examples.Logic.Example
|
namespace GerstITS.Examples.Logic.Example;
|
||||||
{
|
|
||||||
public class Example
|
public class Example
|
||||||
{
|
{
|
||||||
#region Properties
|
#region Properties
|
||||||
@@ -10,4 +10,3 @@
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -1,8 +1,7 @@
|
|||||||
namespace GerstITS.Examples.Logic.Example
|
namespace GerstITS.Examples.Logic.Example;
|
||||||
{
|
|
||||||
public interface IExampleProvider
|
public interface IExampleProvider
|
||||||
{
|
{
|
||||||
Example GetById(int id);
|
Example GetById(int id);
|
||||||
Example GetById_v1_1(int id);
|
Example GetById_v1_1(int id);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using AutoMapper;
|
using AutoMapper;
|
||||||
using GerstITS.Data;
|
using GerstITS.Data;
|
||||||
|
|
||||||
namespace GerstITS.Examples.Logic.Example
|
namespace GerstITS.Examples.Logic.Example;
|
||||||
{
|
|
||||||
internal sealed class ExampleProvider : IExampleProvider
|
internal sealed class ExampleProvider : IExampleProvider
|
||||||
{
|
{
|
||||||
#region Fields
|
#region Fields
|
||||||
@@ -48,4 +48,3 @@ namespace GerstITS.Examples.Logic.Example
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using AutoMapper;
|
using AutoMapper;
|
||||||
|
|
||||||
namespace GerstITS.Examples.Logic.Example
|
namespace GerstITS.Examples.Logic.Example;
|
||||||
{
|
|
||||||
internal sealed class IntegerMapping : Profile
|
internal sealed class IntegerMapping : Profile
|
||||||
{
|
{
|
||||||
#region Construtcors
|
#region Construtcors
|
||||||
@@ -16,4 +16,3 @@ namespace GerstITS.Examples.Logic.Example
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Company>Gerst ITS</Company>
|
<Company>Gerst ITS</Company>
|
||||||
<Authors>Gerst ITS</Authors>
|
<Authors>Gerst ITS</Authors>
|
||||||
<Copyright>© 2021 Gerst ITS</Copyright>
|
<Copyright>© 2025 Gerst ITS</Copyright>
|
||||||
<Product>Gerst ITS Examples logic</Product>
|
<Product>Gerst ITS Examples logic</Product>
|
||||||
<Description>Exapmle Logic.</Description>
|
<Description>Exapmle Logic.</Description>
|
||||||
<Version>0.0.0.0</Version>
|
<Version>0.0.0.0</Version>
|
||||||
@@ -12,11 +12,6 @@
|
|||||||
<FileVersion>0.0.0.0</FileVersion>
|
<FileVersion>0.0.0.0</FileVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<TargetFramework>net5.0</TargetFramework>
|
|
||||||
<LangVersion>latest</LangVersion>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
|
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
|
||||||
@@ -32,24 +27,18 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="AutoMapper" Version="10.1.1" />
|
<PackageReference Include="GerstITS.Data" />
|
||||||
<PackageReference Include="FluentValidation" Version="10.3.0" />
|
<PackageReference Include="GerstITS.IoC" />
|
||||||
<PackageReference Include="GerstITS.Data" Version="2021.7.12" />
|
<PackageReference Include="GerstITS.IoC.DotNetCore" />
|
||||||
<PackageReference Include="GerstITS.IoC" Version="2021.7.17" />
|
<PackageReference Include="GerstITS.Mapping.AutoMapper" />
|
||||||
<PackageReference Include="GerstITS.IoC.DotNetCore" Version="2021.7.21" />
|
<PackageReference Include="GerstITS.Search" />
|
||||||
<PackageReference Include="GerstITS.Mapping.AutoMapper" Version="2021.6.21" />
|
<PackageReference Include="GerstITS.Validation" />
|
||||||
<PackageReference Include="GerstITS.Search" Version="2021.6.17" />
|
<PackageReference Include="GerstITS.Web.Api" />
|
||||||
<PackageReference Include="GerstITS.Validation" Version="2021.7.18" />
|
|
||||||
<PackageReference Include="GerstITS.Web.Api" Version="2021.7.21" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Update="Module.Example.cs">
|
<ProjectCapability Include="ConfigurableFileNesting" />
|
||||||
<DependentUpon>Module.cs</DependentUpon>
|
<ProjectCapability Include="ConfigurableFileNestingFeatureEnabled" />
|
||||||
</Compile>
|
|
||||||
<Compile Update="Module.Shared.cs">
|
|
||||||
<DependentUpon>Module.cs</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
using GerstITS.Mapping.AutoMapper;
|
using GerstITS.Mapping.AutoMapper;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
|
||||||
namespace GerstITS.Examples.Logic
|
namespace GerstITS.Examples.Logic;
|
||||||
{
|
|
||||||
public sealed partial class Module
|
public sealed partial class Module
|
||||||
{
|
{
|
||||||
#region Methods
|
#region Methods
|
||||||
@@ -17,4 +17,3 @@ namespace GerstITS.Examples.Logic
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -4,8 +4,8 @@ using GerstITS.Search;
|
|||||||
using GerstITS.Validation;
|
using GerstITS.Validation;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
|
||||||
namespace GerstITS.Examples.Logic
|
namespace GerstITS.Examples.Logic;
|
||||||
{
|
|
||||||
public sealed partial class Module
|
public sealed partial class Module
|
||||||
{
|
{
|
||||||
#region Methods
|
#region Methods
|
||||||
@@ -19,4 +19,3 @@ namespace GerstITS.Examples.Logic
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using GerstITS.IoC;
|
using GerstITS.IoC;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
|
||||||
namespace GerstITS.Examples.Logic
|
namespace GerstITS.Examples.Logic;
|
||||||
{
|
|
||||||
public sealed partial class Module : IIoCModule<IServiceCollection>
|
public sealed partial class Module : IIoCModule<IServiceCollection>
|
||||||
{
|
{
|
||||||
#region IIoCModule
|
#region IIoCModule
|
||||||
@@ -15,4 +15,3 @@ namespace GerstITS.Examples.Logic
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
using System;
|
using System.Linq.Expressions;
|
||||||
using System.Linq;
|
|
||||||
using System.Linq.Expressions;
|
|
||||||
using GerstITS.Common;
|
using GerstITS.Common;
|
||||||
using GerstITS.Data;
|
using GerstITS.Data;
|
||||||
|
|
||||||
namespace GerstITS.Examples.Logic.Shared
|
namespace GerstITS.Examples.Logic.Shared;
|
||||||
{
|
|
||||||
internal static class ISearchEngineExtensions
|
internal static class ISearchEngineExtensions
|
||||||
{
|
{
|
||||||
#region Methods
|
#region Methods
|
||||||
@@ -28,4 +26,3 @@ namespace GerstITS.Examples.Logic.Shared
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
namespace GerstITS.Examples.Logic.Shared.Search.Sorting
|
namespace GerstITS.Examples.Logic.Shared.Search.Sorting;
|
||||||
{
|
|
||||||
internal interface ISortable
|
internal interface ISortable
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
using System;
|
using System.Linq.Expressions;
|
||||||
using System.Linq;
|
|
||||||
using System.Linq.Expressions;
|
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using GerstITS.Common;
|
using GerstITS.Common;
|
||||||
using GerstITS.Search;
|
using GerstITS.Search;
|
||||||
|
|
||||||
namespace GerstITS.Examples.Logic.Shared.Search.Sorting
|
namespace GerstITS.Examples.Logic.Shared.Search.Sorting;
|
||||||
{
|
|
||||||
internal class SortingProvider : ISortingProvider
|
internal class SortingProvider : ISortingProvider
|
||||||
{
|
{
|
||||||
#region ISortingProvider
|
#region ISortingProvider
|
||||||
@@ -47,4 +45,3 @@ namespace GerstITS.Examples.Logic.Shared.Search.Sorting
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using FluentValidation;
|
using FluentValidation;
|
||||||
using GerstITS.Validation;
|
using GerstITS.Validation;
|
||||||
|
|
||||||
namespace GerstITS.Examples.Logic.Shared.Validation
|
namespace GerstITS.Examples.Logic.Shared.Validation;
|
||||||
{
|
|
||||||
internal sealed class IdValidationRule : ValidationRuleBase<int>
|
internal sealed class IdValidationRule : ValidationRuleBase<int>
|
||||||
{
|
{
|
||||||
#region Constructors
|
#region Constructors
|
||||||
@@ -16,4 +16,3 @@ namespace GerstITS.Examples.Logic.Shared.Validation
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Company>Gerst ITS</Company>
|
<Company>Gerst ITS</Company>
|
||||||
<Authors>Gerst ITS</Authors>
|
<Authors>Gerst ITS</Authors>
|
||||||
<Copyright>© 2021 Gerst ITS</Copyright>
|
<Copyright>© 2025 Gerst ITS</Copyright>
|
||||||
<Product>Gerst ITS Examples Web Api client console application</Product>
|
<Product>Gerst ITS Examples Web Api client console application</Product>
|
||||||
<Description>Exapmle Web Api client console application.</Description>
|
<Description>Exapmle Web Api client console application.</Description>
|
||||||
<Version>0.0.0.0</Version>
|
<Version>0.0.0.0</Version>
|
||||||
@@ -13,8 +13,6 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net5.0</TargetFramework>
|
|
||||||
<LangVersion>latest</LangVersion>
|
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
@@ -43,15 +41,16 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="GerstITS.Common" Version="2021.6.24" />
|
<PackageReference Include="GerstITS.Common" />
|
||||||
<PackageReference Include="GerstITS.IoC" Version="2021.7.17" />
|
<PackageReference Include="GerstITS.IoC" />
|
||||||
<PackageReference Include="GerstITS.IoC.DotNetCore" Version="2021.7.21" />
|
<PackageReference Include="GerstITS.IoC.DotNetCore" />
|
||||||
<PackageReference Include="GerstITS.System" Version="2021.7.20" />
|
<PackageReference Include="GerstITS.System" />
|
||||||
<PackageReference Include="GerstITS.Web" Version="2021.6.17" />
|
<PackageReference Include="GerstITS.Web" />
|
||||||
<PackageReference Include="GerstITS.Web.Rest" Version="2021.6.17" />
|
<PackageReference Include="GerstITS.Web.Rest" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="5.0.0" />
|
<PackageReference Include="Hocon.Extensions.Configuration" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="5.0.0" />
|
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="5.0.0" />
|
<PackageReference Include="Microsoft.Extensions.Configuration.Json" />
|
||||||
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
using System;
|
using GerstITS.Examples.WebClient.Console.Tests;
|
||||||
using GerstITS.Examples.WebClient.Console.Tests;
|
|
||||||
using GerstITS.IoC;
|
using GerstITS.IoC;
|
||||||
using GerstITS.IoC.DotNetCore;
|
using GerstITS.IoC.DotNetCore;
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
|
||||||
namespace GerstITS.Examples.WebClient.Console
|
namespace GerstITS.Examples.WebClient.Console;
|
||||||
{
|
|
||||||
public class Module : IIoCModule<IServiceCollection>
|
public class Module : IIoCModule<IServiceCollection>
|
||||||
{
|
{
|
||||||
#region IIoCModule
|
#region IIoCModule
|
||||||
@@ -22,4 +21,3 @@ namespace GerstITS.Examples.WebClient.Console
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using GerstITS.IoC.DotNetCore;
|
using GerstITS.IoC.DotNetCore;
|
||||||
|
|
||||||
namespace GerstITS.Examples.WebClient.Console
|
namespace GerstITS.Examples.WebClient.Console;
|
||||||
{
|
|
||||||
internal class Program
|
internal class Program
|
||||||
{
|
{
|
||||||
#region Fields
|
#region Fields
|
||||||
@@ -28,4 +28,3 @@ namespace GerstITS.Examples.WebClient.Console
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
using System;
|
using GerstITS.Examples.WebClients.Examples.Api;
|
||||||
using System.Linq;
|
|
||||||
using GerstITS.Examples.WebClients.Examples.Api;
|
|
||||||
using GerstITS.IoC.DotNetCore;
|
using GerstITS.IoC.DotNetCore;
|
||||||
using GerstITS.Web.WebClients;
|
using GerstITS.Web.WebClients;
|
||||||
|
|
||||||
namespace GerstITS.Examples.WebClient.Console.Tests
|
namespace GerstITS.Examples.WebClient.Console.Tests;
|
||||||
{
|
|
||||||
internal sealed class TestRunner : IApplicationStart
|
internal sealed class TestRunner : IApplicationStart
|
||||||
{
|
{
|
||||||
#region Fields
|
#region Fields
|
||||||
@@ -48,4 +46,3 @@ namespace GerstITS.Examples.WebClient.Console.Tests
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 16
|
# Visual Studio Version 18
|
||||||
VisualStudioVersion = 16.0.31321.278
|
VisualStudioVersion = 18.0.11217.181 d18.0
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GerstITS.Examples.Api", "GerstITS.Examples.Api\GerstITS.Examples.Api.csproj", "{417B5C77-05BF-4562-9A1A-AEE0531B59C1}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GerstITS.Examples.Api", "GerstITS.Examples.Api\GerstITS.Examples.Api.csproj", "{417B5C77-05BF-4562-9A1A-AEE0531B59C1}"
|
||||||
EndProject
|
EndProject
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||||
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PrivateStaticReadonly/@EntryIndexedValue"><Policy Inspect="True" Prefix="_" Suffix="" Style="aaBb" /></s:String>
|
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PrivateStaticReadonly/@EntryIndexedValue"><Policy Inspect="True" Prefix="_" Suffix="" Style="aaBb" /></s:String>
|
||||||
|
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/UserRules/=15b5b1f1_002D457c_002D4ca6_002Db278_002D5615aedc07d3/@EntryIndexedValue"><Policy><Descriptor Staticness="Static" AccessRightKinds="Private" Description="Static readonly fields (private)"><ElementKinds><Kind Name="READONLY_FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" WarnAboutPrefixesAndSuffixes="False" Prefix="_" Suffix="" Style="aaBb" /></Policy></s:String>
|
||||||
|
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EPredefinedNamingRulesToUserRulesUpgrade/@EntryIndexedValue">True</s:Boolean>
|
||||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=Gerst/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
|
<s:Boolean x:Key="/Default/UserDictionary/Words/=Gerst/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using GerstITS.Web.Rest.WebClients;
|
using GerstITS.Web.Rest.WebClients;
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
|
|
||||||
namespace GerstITS.Examples.WebClients.Examples.Api.Configurations
|
namespace GerstITS.Examples.WebClients.Examples.Api.Configurations;
|
||||||
{
|
|
||||||
internal class ExampleApiClientConfiguration : RestWebServiceConfigurationBase
|
internal class ExampleApiClientConfiguration : RestWebServiceConfigurationBase
|
||||||
{
|
{
|
||||||
#region Constructors
|
#region Constructors
|
||||||
@@ -14,4 +14,3 @@ namespace GerstITS.Examples.WebClients.Examples.Api.Configurations
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using GerstITS.Web.WebClients;
|
using GerstITS.Web.WebClients;
|
||||||
|
|
||||||
namespace GerstITS.Examples.WebClients.Examples.Api
|
namespace GerstITS.Examples.WebClients.Examples.Api;
|
||||||
{
|
|
||||||
public interface ICountry : IWebService
|
public interface ICountry : IWebService
|
||||||
{
|
{
|
||||||
[WebMethod(WebMethods.Get),
|
[WebMethod(WebMethods.Get),
|
||||||
@@ -24,4 +24,3 @@ namespace GerstITS.Examples.WebClients.Examples.Api
|
|||||||
ResourceUrl("Country/{id}")]
|
ResourceUrl("Country/{id}")]
|
||||||
void Delete(int id);
|
void Delete(int id);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace GerstITS.Examples.WebClients.Examples.Api
|
namespace GerstITS.Examples.WebClients.Examples.Api;
|
||||||
{
|
|
||||||
public class Country
|
public class Country
|
||||||
{
|
{
|
||||||
#region Properties
|
#region Properties
|
||||||
@@ -9,4 +9,3 @@
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace GerstITS.Examples.WebClients.Examples.Api
|
namespace GerstITS.Examples.WebClients.Examples.Api;
|
||||||
{
|
|
||||||
public class SearchCriteria
|
public class SearchCriteria
|
||||||
{
|
{
|
||||||
#region Properties
|
#region Properties
|
||||||
@@ -15,4 +15,3 @@
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -1,8 +1,5 @@
|
|||||||
using System;
|
namespace GerstITS.Examples.WebClients.Examples.Api;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace GerstITS.Examples.WebClients.Examples.Api
|
|
||||||
{
|
|
||||||
public class SearchResult<TItem>
|
public class SearchResult<TItem>
|
||||||
{
|
{
|
||||||
#region Properties
|
#region Properties
|
||||||
@@ -21,4 +18,3 @@ namespace GerstITS.Examples.WebClients.Examples.Api
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -1,8 +1,7 @@
|
|||||||
namespace GerstITS.Examples.WebClients.Examples.Api
|
namespace GerstITS.Examples.WebClients.Examples.Api;
|
||||||
{
|
|
||||||
public enum SortingDirections
|
public enum SortingDirections
|
||||||
{
|
{
|
||||||
Ascending = 0,
|
Ascending = 0,
|
||||||
Descending
|
Descending
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
using System;
|
using GerstITS.Examples.WebClients.Examples.Api.Configurations;
|
||||||
using GerstITS.Examples.WebClients.Examples.Api.Configurations;
|
|
||||||
using GerstITS.Web.Rest.WebClients;
|
using GerstITS.Web.Rest.WebClients;
|
||||||
|
|
||||||
namespace GerstITS.Examples.WebClients.Examples.Api.CreationRules
|
namespace GerstITS.Examples.WebClients.Examples.Api.CreationRules;
|
||||||
{
|
|
||||||
internal sealed class ExampleApiClientCreatingRule : RestApiClientCreationRuleBase<ExampleApiClientConfiguration>
|
internal sealed class ExampleApiClientCreatingRule : RestApiClientCreationRuleBase<ExampleApiClientConfiguration>
|
||||||
{
|
{
|
||||||
#region Properties
|
#region Properties
|
||||||
@@ -22,4 +21,3 @@ namespace GerstITS.Examples.WebClients.Examples.Api.CreationRules
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Company>Gerst ITS</Company>
|
<Company>Gerst ITS</Company>
|
||||||
<Authors>Gerst ITS</Authors>
|
<Authors>Gerst ITS</Authors>
|
||||||
<Copyright>© 2021 Gerst ITS</Copyright>
|
<Copyright>© 2025 Gerst ITS</Copyright>
|
||||||
<Product>Gerst ITS Examples Web Api client</Product>
|
<Product>Gerst ITS Examples Web Api client</Product>
|
||||||
<Description>Exapmle Web Api client.</Description>
|
<Description>Exapmle Web Api client.</Description>
|
||||||
<Version>0.0.0.0</Version>
|
<Version>0.0.0.0</Version>
|
||||||
@@ -12,11 +12,6 @@
|
|||||||
<FileVersion>0.0.0.0</FileVersion>
|
<FileVersion>0.0.0.0</FileVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<TargetFramework>net5.0</TargetFramework>
|
|
||||||
<LangVersion>latest</LangVersion>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
|
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
|
||||||
@@ -32,20 +27,11 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="GerstITS.IoC" Version="2021.7.17" />
|
<PackageReference Include="GerstITS.IoC" />
|
||||||
<PackageReference Include="GerstITS.IoC.DotNetCore" Version="2021.7.21" />
|
<PackageReference Include="GerstITS.IoC.DotNetCore" />
|
||||||
<PackageReference Include="GerstITS.System" Version="2021.7.20" />
|
<PackageReference Include="GerstITS.System" />
|
||||||
<PackageReference Include="GerstITS.Web" Version="2021.6.17" />
|
<PackageReference Include="GerstITS.Web" />
|
||||||
<PackageReference Include="GerstITS.Web.Rest" Version="2021.6.17" />
|
<PackageReference Include="GerstITS.Web.Rest" />
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Update="Module.Configurations.cs">
|
|
||||||
<DependentUpon>Module.cs</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Update="Module.CreationRules.cs">
|
|
||||||
<DependentUpon>Module.cs</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using GerstITS.Examples.WebClients.Examples.Api.Configurations;
|
using GerstITS.Examples.WebClients.Examples.Api.Configurations;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
|
||||||
namespace GerstITS.Examples.WebClients.Examples.Api
|
namespace GerstITS.Examples.WebClients.Examples.Api;
|
||||||
{
|
|
||||||
public sealed partial class Module
|
public sealed partial class Module
|
||||||
{
|
{
|
||||||
#region Methods
|
#region Methods
|
||||||
@@ -14,4 +14,3 @@ namespace GerstITS.Examples.WebClients.Examples.Api
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -2,8 +2,8 @@
|
|||||||
using GerstITS.Web.WebClients;
|
using GerstITS.Web.WebClients;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
|
||||||
namespace GerstITS.Examples.WebClients.Examples.Api
|
namespace GerstITS.Examples.WebClients.Examples.Api;
|
||||||
{
|
|
||||||
public sealed partial class Module
|
public sealed partial class Module
|
||||||
{
|
{
|
||||||
#region Methods
|
#region Methods
|
||||||
@@ -15,4 +15,3 @@ namespace GerstITS.Examples.WebClients.Examples.Api
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using GerstITS.IoC;
|
using GerstITS.IoC;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
|
||||||
namespace GerstITS.Examples.WebClients.Examples.Api
|
namespace GerstITS.Examples.WebClients.Examples.Api;
|
||||||
{
|
|
||||||
public sealed partial class Module : IIoCModule<IServiceCollection>
|
public sealed partial class Module : IIoCModule<IServiceCollection>
|
||||||
{
|
{
|
||||||
#region IIoCModule
|
#region IIoCModule
|
||||||
@@ -15,4 +15,3 @@ namespace GerstITS.Examples.WebClients.Examples.Api
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
16
NuGet.Config
16
NuGet.Config
@@ -1,8 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<config>
|
|
||||||
<add key="repositoryPath" value="..\packages" />
|
|
||||||
</config>
|
|
||||||
<packageRestore>
|
<packageRestore>
|
||||||
<add key="enabled" value="True" />
|
<add key="enabled" value="True" />
|
||||||
<add key="automatic" value="True" />
|
<add key="automatic" value="True" />
|
||||||
@@ -17,4 +14,15 @@
|
|||||||
</disabledPackageSources>
|
</disabledPackageSources>
|
||||||
<activePackageSource>
|
<activePackageSource>
|
||||||
</activePackageSource>
|
</activePackageSource>
|
||||||
|
<packageSourceMapping>
|
||||||
|
<packageSource key="nuget.org - V2">
|
||||||
|
<package pattern="*" />
|
||||||
|
</packageSource>
|
||||||
|
<packageSource key="nuget.org - V3">
|
||||||
|
<package pattern="*" />
|
||||||
|
</packageSource>
|
||||||
|
<packageSource key="Gerst ITS">
|
||||||
|
<package pattern="GerstITS.*" />
|
||||||
|
</packageSource>
|
||||||
|
</packageSourceMapping>
|
||||||
</configuration>
|
</configuration>
|
||||||
Reference in New Issue
Block a user