feat(transport): scaffold ScadaLink.Transport project + test projects
This commit is contained in:
21
src/ScadaLink.Transport/ScadaLink.Transport.csproj
Normal file
21
src/ScadaLink.Transport/ScadaLink.Transport.csproj
Normal file
@@ -0,0 +1,21 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="../ScadaLink.Commons/ScadaLink.Commons.csproj" />
|
||||
<ProjectReference Include="../ScadaLink.ConfigurationDatabase/ScadaLink.ConfigurationDatabase.csproj" />
|
||||
<ProjectReference Include="../ScadaLink.TemplateEngine/ScadaLink.TemplateEngine.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<InternalsVisibleTo Include="ScadaLink.Transport.Tests" />
|
||||
<InternalsVisibleTo Include="ScadaLink.Transport.IntegrationTests" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
15
src/ScadaLink.Transport/ServiceCollectionExtensions.cs
Normal file
15
src/ScadaLink.Transport/ServiceCollectionExtensions.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace ScadaLink.Transport;
|
||||
|
||||
public static class ServiceCollectionExtensions
|
||||
{
|
||||
public const string OptionsSection = "ScadaLink:Transport";
|
||||
|
||||
public static IServiceCollection AddTransport(this IServiceCollection services)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(services);
|
||||
// Concrete services and options binding added in later tasks.
|
||||
return services;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user