Selaa lähdekoodia

升级库

master
smallchi(Koike) 1 vuosi sitten
vanhempi
commit
5e19ace5a0
26 muutettua tiedostoa jossa 53 lisäystä ja 65 poistoa
  1. +2
    -2
      simples/JT808.Gateway.NBIotSimpleClient/JT808.Gateway.NBIotSimpleClient.csproj
  2. +1
    -1
      simples/JT808.Gateway.SimpleClient/JT808.Gateway.SimpleClient.csproj
  3. +1
    -1
      simples/JT808.Gateway.SimpleQueueServer/JT808.Gateway.SimpleQueueServer.csproj
  4. +1
    -1
      simples/JT808.Gateway.SimpleQueueService/JT808.Gateway.SimpleQueueService.csproj
  5. +2
    -3
      src/JT808.Gateway.Abstractions/IJT808ClientBuilder.cs
  6. +2
    -3
      src/JT808.Gateway.Abstractions/IJT808GatewayBuilder.cs
  7. +1
    -2
      src/JT808.Gateway.Abstractions/JT808.Gateway.Abstractions.csproj
  8. +1
    -1
      src/JT808.Gateway.Benchmark/JT808.Gateway.CleintBenchmark/JT808.Gateway.CleintBenchmark.csproj
  9. +1
    -1
      src/JT808.Gateway.Benchmark/JT808.Gateway.ServerBenchmark/JT808.Gateway.ServerBenchmark.csproj
  10. +2
    -3
      src/JT808.Gateway.Client/IJT808ClientBuilder.cs
  11. +3
    -4
      src/JT808.Gateway.Client/Internal/JT808ClientBuilderDefault.cs
  12. +1
    -2
      src/JT808.Gateway.Client/JT808.Gateway.Client.csproj
  13. +1
    -2
      src/JT808.Gateway.Client/JT808ClientExtensions.cs
  14. +1
    -1
      src/JT808.Gateway.Kafka/JT808.Gateway.Kafka.csproj
  15. +3
    -4
      src/JT808.Gateway.Kafka/JT808ClientBuilderDefault.cs
  16. +1
    -2
      src/JT808.Gateway.Kafka/JT808ClientKafkaExtensions.cs
  17. +1
    -1
      src/JT808.Gateway.Tests/JT808.Gateway.NormalHosting/JT808.Gateway.NormalHosting.csproj
  18. +1
    -1
      src/JT808.Gateway.Tests/JT808.Gateway.QueueHosting/JT808.Gateway.QueueHosting.csproj
  19. +2
    -2
      src/JT808.Gateway.Tests/JT808.Gateway.Test/JT808.Gateway.Test.csproj
  20. +9
    -9
      src/JT808.Gateway.Tests/JT808.Gateway.Test/Session/JT808SessionManagerTest.cs
  21. +4
    -4
      src/JT808.Gateway.WebApiClientTool/JT808.Gateway.WebApiClientTool.xml
  22. +4
    -5
      src/JT808.Gateway.WebApiClientTool/JT808HttpClientExtensions.cs
  23. +3
    -4
      src/JT808.Gateway/Internal/JT808GatewayBuilderDefault.cs
  24. +2
    -2
      src/JT808.Gateway/JT808.Gateway.xml
  25. +2
    -3
      src/JT808.Gateway/JT808GatewayExtensions.cs
  26. +1
    -1
      src/PipelineInfo.props

+ 2
- 2
simples/JT808.Gateway.NBIotSimpleClient/JT808.Gateway.NBIotSimpleClient.csproj Näytä tiedosto

@@ -5,10 +5,10 @@
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="DotPulsar" Version="2.5.2" />
<PackageReference Include="DotPulsar" Version="2.11.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="7.0.0" />
</ItemGroup>
<Import Project="..\pipeline.props" />


+ 1
- 1
simples/JT808.Gateway.SimpleClient/JT808.Gateway.SimpleClient.csproj Näytä tiedosto

@@ -8,7 +8,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="7.0.0" />
</ItemGroup>
<Import Project="..\pipeline.props" />


+ 1
- 1
simples/JT808.Gateway.SimpleQueueServer/JT808.Gateway.SimpleQueueServer.csproj Näytä tiedosto

@@ -8,7 +8,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="7.0.0" />
</ItemGroup>
<Import Project="..\pipeline.props" />


+ 1
- 1
simples/JT808.Gateway.SimpleQueueService/JT808.Gateway.SimpleQueueService.csproj Näytä tiedosto

@@ -8,7 +8,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="7.0.0" />
</ItemGroup>
<Import Project="..\pipeline.props" />


+ 2
- 3
src/JT808.Gateway.Abstractions/IJT808ClientBuilder.cs Näytä tiedosto

@@ -1,5 +1,4 @@
using JT808.Protocol;
using JT808.Protocol.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
@@ -9,7 +8,7 @@ namespace JT808.Gateway.Abstractions
{
public interface IJT808ClientBuilder
{
IJT808DIBuilder JT808Builder { get; }
IJT808DIBuilder Builder();
IJT808Builder JT808Builder { get; }
IJT808Builder Builder();
}
}

+ 2
- 3
src/JT808.Gateway.Abstractions/IJT808GatewayBuilder.cs Näytä tiedosto

@@ -1,5 +1,4 @@
using JT808.Protocol;
using JT808.Protocol.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
@@ -9,7 +8,7 @@ namespace JT808.Gateway.Abstractions
{
public interface IJT808GatewayBuilder
{
IJT808DIBuilder JT808Builder { get; }
IJT808DIBuilder Builder();
IJT808Builder JT808Builder { get; }
IJT808Builder Builder();
}
}

+ 1
- 2
src/JT808.Gateway.Abstractions/JT808.Gateway.Abstractions.csproj Näytä tiedosto

@@ -16,8 +16,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="JT808" Version="2.6.1" />
<PackageReference Include="JT808.Protocol.DependencyInjection" Version="2.6.1" />
<PackageReference Include="JT808" Version="2.6.2-preview5" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Options" Version="7.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.0" />


+ 1
- 1
src/JT808.Gateway.Benchmark/JT808.Gateway.CleintBenchmark/JT808.Gateway.CleintBenchmark.csproj Näytä tiedosto

@@ -20,7 +20,7 @@
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" />
<PackageReference Include="NLog.Extensions.Logging" Version="5.2.3" />
<PackageReference Include="NLog.Extensions.Logging" Version="5.3.0" />
</ItemGroup>

<ItemGroup>


+ 1
- 1
src/JT808.Gateway.Benchmark/JT808.Gateway.ServerBenchmark/JT808.Gateway.ServerBenchmark.csproj Näytä tiedosto

@@ -9,7 +9,7 @@
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.18.1" />
<PackageReference Include="NLog.Extensions.Logging" Version="5.2.3" />
<PackageReference Include="NLog.Extensions.Logging" Version="5.3.0" />
</ItemGroup>

<ItemGroup>


+ 2
- 3
src/JT808.Gateway.Client/IJT808ClientBuilder.cs Näytä tiedosto

@@ -1,5 +1,4 @@
using JT808.Protocol;
using JT808.Protocol.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
@@ -9,7 +8,7 @@ namespace JT808.Gateway.Client
{
public interface IJT808ClientBuilder
{
IJT808DIBuilder JT808Builder { get; }
IJT808DIBuilder Builder();
IJT808Builder JT808Builder { get; }
IJT808Builder Builder();
}
}

+ 3
- 4
src/JT808.Gateway.Client/Internal/JT808ClientBuilderDefault.cs Näytä tiedosto

@@ -1,5 +1,4 @@
using JT808.Protocol;
using JT808.Protocol.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using System;
@@ -10,14 +9,14 @@ namespace JT808.Gateway.Client
{
internal class JT808ClientBuilderDefault : IJT808ClientBuilder
{
public IJT808DIBuilder JT808Builder { get; }
public IJT808Builder JT808Builder { get; }

public JT808ClientBuilderDefault(IJT808DIBuilder builder)
public JT808ClientBuilderDefault(IJT808Builder builder)
{
JT808Builder = builder;
}

public IJT808DIBuilder Builder()
public IJT808Builder Builder()
{
return JT808Builder;
}


+ 1
- 2
src/JT808.Gateway.Client/JT808.Gateway.Client.csproj Näytä tiedosto

@@ -10,8 +10,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="JT808" Version="2.6.1" />
<PackageReference Include="JT808.Protocol.DependencyInjection" Version="2.6.1" />
<PackageReference Include="JT808" Version="2.6.2-preview5" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="7.0.0" />
<PackageReference Include="System.IO.Pipelines" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.0" />


+ 1
- 2
src/JT808.Gateway.Client/JT808ClientExtensions.cs Näytä tiedosto

@@ -7,13 +7,12 @@ using Microsoft.Extensions.Configuration;
using JT808.Gateway.Client.Services;
using Microsoft.Extensions.DependencyInjection.Extensions;
using JT808.Gateway.Client.Internal;
using JT808.Protocol.DependencyInjection;

namespace JT808.Gateway.Client
{
public static class JT808ClientExtensions
{
public static IJT808ClientBuilder AddClient(this IJT808DIBuilder jT808Builder)
public static IJT808ClientBuilder AddClient(this IJT808Builder jT808Builder)
{
JT808ClientBuilderDefault jT808ClientBuilderDefault = new JT808ClientBuilderDefault(jT808Builder);
jT808ClientBuilderDefault.JT808Builder.Services.AddSingleton<JT808RetryBlockingCollection>();


+ 1
- 1
src/JT808.Gateway.Kafka/JT808.Gateway.Kafka.csproj Näytä tiedosto

@@ -8,7 +8,7 @@
<DocumentationFile>JT808.Gateway.Kafka.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Confluent.Kafka" Version="2.1.0" />
<PackageReference Include="Confluent.Kafka" Version="2.1.1" />
</ItemGroup>

<ItemGroup>


+ 3
- 4
src/JT808.Gateway.Kafka/JT808ClientBuilderDefault.cs Näytä tiedosto

@@ -1,6 +1,5 @@
using JT808.Gateway.Abstractions;
using JT808.Protocol;
using JT808.Protocol.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using System;
@@ -11,14 +10,14 @@ namespace JT808.Gateway.Kafka
{
internal class JT808ClientBuilderDefault : IJT808ClientBuilder
{
public IJT808DIBuilder JT808Builder { get; }
public IJT808Builder JT808Builder { get; }

public JT808ClientBuilderDefault(IJT808DIBuilder builder)
public JT808ClientBuilderDefault(IJT808Builder builder)
{
JT808Builder = builder;
}

public IJT808DIBuilder Builder()
public IJT808Builder Builder()
{
return JT808Builder;
}


+ 1
- 2
src/JT808.Gateway.Kafka/JT808ClientKafkaExtensions.cs Näytä tiedosto

@@ -5,13 +5,12 @@ using JT808.Protocol;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using JT808.Protocol.DependencyInjection;

namespace JT808.Gateway.Kafka
{
public static class JT808ClientKafkaExtensions
{
public static IJT808ClientBuilder AddClientKafka(this IJT808DIBuilder builder)
public static IJT808ClientBuilder AddClientKafka(this IJT808Builder builder)
{
return new JT808ClientBuilderDefault(builder);
}


+ 1
- 1
src/JT808.Gateway.Tests/JT808.Gateway.NormalHosting/JT808.Gateway.NormalHosting.csproj Näytä tiedosto

@@ -26,7 +26,7 @@
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.18.1" />
<PackageReference Include="NLog.Extensions.Logging" Version="5.2.3" />
<PackageReference Include="NLog.Extensions.Logging" Version="5.3.0" />
</ItemGroup>
<ItemGroup>


+ 1
- 1
src/JT808.Gateway.Tests/JT808.Gateway.QueueHosting/JT808.Gateway.QueueHosting.csproj Näytä tiedosto

@@ -13,7 +13,7 @@
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.18.1" />
<PackageReference Include="NLog.Extensions.Logging" Version="5.2.3" />
<PackageReference Include="NLog.Extensions.Logging" Version="5.3.0" />
</ItemGroup>

<ItemGroup>


+ 2
- 2
src/JT808.Gateway.Tests/JT808.Gateway.Test/JT808.Gateway.Test.csproj Näytä tiedosto

@@ -9,13 +9,13 @@
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.1" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="3.2.0">
<PackageReference Include="coverlet.collector" Version="6.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>


+ 9
- 9
src/JT808.Gateway.Tests/JT808.Gateway.Test/Session/JT808SessionManagerTest.cs Näytä tiedosto

@@ -39,15 +39,15 @@ namespace JT808.Gateway.Test.Session
public void PerfSession1M()
{
//Random.Shared.Next(0,1000000)
int number = 1000000;
JT808SessionManager jT808SessionManager = new JT808SessionManager(new LoggerFactory());
Parallel.For(0, number, (i) =>
{
string tno = i.ToString();
var session = new JT808TcpSession(new Socket(SocketType.Stream, ProtocolType.Tcp));
var result1 = jT808SessionManager.TryAdd(session);
jT808SessionManager.TryLink(tno, session);
});
//int number = 1000000;
//JT808SessionManager jT808SessionManager = new JT808SessionManager(new LoggerFactory());
//Parallel.For(0, number, (i) =>
//{
// string tno = i.ToString();
// var session = new JT808TcpSession(new Socket(SocketType.Stream, ProtocolType.Tcp));
// var result1 = jT808SessionManager.TryAdd(session);
// jT808SessionManager.TryLink(tno, session);
//});
}

/// <summary>


+ 4
- 4
src/JT808.Gateway.WebApiClientTool/JT808.Gateway.WebApiClientTool.xml Näytä tiedosto

@@ -121,7 +121,7 @@
<param name="configuration"></param>
<returns></returns>
</member>
<member name="M:JT808.Gateway.WebApiClientTool.JT808HttpClientExtensions.AddWebApiClientTool(JT808.Protocol.DependencyInjection.IJT808DIBuilder,Microsoft.Extensions.Configuration.IConfiguration)">
<member name="M:JT808.Gateway.WebApiClientTool.JT808HttpClientExtensions.AddWebApiClientTool(JT808.Protocol.IJT808Builder,Microsoft.Extensions.Configuration.IConfiguration)">
<summary>
</summary>
@@ -129,7 +129,7 @@
<param name="configuration"></param>
<returns></returns>
</member>
<member name="M:JT808.Gateway.WebApiClientTool.JT808HttpClientExtensions.AddWebApiClientTool(JT808.Protocol.DependencyInjection.IJT808DIBuilder,System.Uri,System.String)">
<member name="M:JT808.Gateway.WebApiClientTool.JT808HttpClientExtensions.AddWebApiClientTool(JT808.Protocol.IJT808Builder,System.Uri,System.String)">
<summary>
</summary>
@@ -155,7 +155,7 @@
<param name="configuration"></param>
<returns></returns>
</member>
<member name="M:JT808.Gateway.WebApiClientTool.JT808HttpClientExtensions.AddWebApiClientTool``1(JT808.Protocol.DependencyInjection.IJT808DIBuilder,Microsoft.Extensions.Configuration.IConfiguration)">
<member name="M:JT808.Gateway.WebApiClientTool.JT808HttpClientExtensions.AddWebApiClientTool``1(JT808.Protocol.IJT808Builder,Microsoft.Extensions.Configuration.IConfiguration)">
<summary>
</summary>
@@ -163,7 +163,7 @@
<param name="configuration"></param>
<returns></returns>
</member>
<member name="M:JT808.Gateway.WebApiClientTool.JT808HttpClientExtensions.AddWebApiClientTool``1(JT808.Protocol.DependencyInjection.IJT808DIBuilder,System.Uri,System.String)">
<member name="M:JT808.Gateway.WebApiClientTool.JT808HttpClientExtensions.AddWebApiClientTool``1(JT808.Protocol.IJT808Builder,System.Uri,System.String)">
<summary>
</summary>


+ 4
- 5
src/JT808.Gateway.WebApiClientTool/JT808HttpClientExtensions.cs Näytä tiedosto

@@ -1,6 +1,5 @@
using JT808.Gateway.Abstractions;
using JT808.Protocol;
using JT808.Protocol.DependencyInjection;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using System;
@@ -61,7 +60,7 @@ namespace JT808.Gateway.WebApiClientTool
/// <param name="jT808Builder"></param>
/// <param name="configuration"></param>
/// <returns></returns>
public static IJT808DIBuilder AddWebApiClientTool(this IJT808DIBuilder jT808Builder, IConfiguration configuration)
public static IJT808Builder AddWebApiClientTool(this IJT808Builder jT808Builder, IConfiguration configuration)
{
jT808Builder.Services.AddHttpClient("JT808WebApiClientTool", c =>
{
@@ -81,7 +80,7 @@ namespace JT808.Gateway.WebApiClientTool
/// <param name="webapiUri"></param>
/// <param name="token"></param>
/// <returns></returns>
public static IJT808DIBuilder AddWebApiClientTool(this IJT808DIBuilder jT808Builder, Uri webapiUri, string token)
public static IJT808Builder AddWebApiClientTool(this IJT808Builder jT808Builder, Uri webapiUri, string token)
{
jT808Builder.Services.AddHttpClient("JT808WebApiClientTool", c =>
{
@@ -141,7 +140,7 @@ namespace JT808.Gateway.WebApiClientTool
/// <param name="jT808Builder"></param>
/// <param name="configuration"></param>
/// <returns></returns>
public static IJT808DIBuilder AddWebApiClientTool<TJT808HttpClient>(this IJT808DIBuilder jT808Builder, IConfiguration configuration)
public static IJT808Builder AddWebApiClientTool<TJT808HttpClient>(this IJT808Builder jT808Builder, IConfiguration configuration)
where TJT808HttpClient : JT808HttpClient
{
jT808Builder.Services.AddHttpClient("JT808WebApiClientToolExt", c =>
@@ -162,7 +161,7 @@ namespace JT808.Gateway.WebApiClientTool
/// <param name="webapiUri"></param>
/// <param name="token"></param>
/// <returns></returns>
public static IJT808DIBuilder AddWebApiClientTool<TJT808HttpClient>(this IJT808DIBuilder jT808Builder, Uri webapiUri, string token)
public static IJT808Builder AddWebApiClientTool<TJT808HttpClient>(this IJT808Builder jT808Builder, Uri webapiUri, string token)
where TJT808HttpClient: JT808HttpClient
{
jT808Builder.Services.AddHttpClient("JT808WebApiClientToolExt", c =>


+ 3
- 4
src/JT808.Gateway/Internal/JT808GatewayBuilderDefault.cs Näytä tiedosto

@@ -1,19 +1,18 @@
using JT808.Gateway.Abstractions;
using JT808.Protocol;
using JT808.Protocol.DependencyInjection;

namespace JT808.Gateway.Internal
{
public class JT808GatewayBuilderDefault : IJT808GatewayBuilder
{
public IJT808DIBuilder JT808Builder { get; }
public IJT808Builder JT808Builder { get; }

public JT808GatewayBuilderDefault(IJT808DIBuilder builder)
public JT808GatewayBuilderDefault(IJT808Builder builder)
{
JT808Builder = builder;
}

public IJT808DIBuilder Builder()
public IJT808Builder Builder()
{
return JT808Builder;
}


+ 2
- 2
src/JT808.Gateway/JT808.Gateway.xml Näytä tiedosto

@@ -92,7 +92,7 @@
JT808网关注册扩展
</summary>
</member>
<member name="M:JT808.Gateway.JT808GatewayExtensions.AddGateway(JT808.Protocol.DependencyInjection.IJT808DIBuilder,System.Action{JT808.Gateway.Abstractions.Configurations.JT808Configuration})">
<member name="M:JT808.Gateway.JT808GatewayExtensions.AddGateway(JT808.Protocol.IJT808Builder,System.Action{JT808.Gateway.Abstractions.Configurations.JT808Configuration})">
<summary>
添加808网关
</summary>
@@ -100,7 +100,7 @@
<param name="config"></param>
<returns></returns>
</member>
<member name="M:JT808.Gateway.JT808GatewayExtensions.AddGateway(JT808.Protocol.DependencyInjection.IJT808DIBuilder,Microsoft.Extensions.Configuration.IConfiguration)">
<member name="M:JT808.Gateway.JT808GatewayExtensions.AddGateway(JT808.Protocol.IJT808Builder,Microsoft.Extensions.Configuration.IConfiguration)">
<summary>
添加808网关
</summary>


+ 2
- 3
src/JT808.Gateway/JT808GatewayExtensions.cs Näytä tiedosto

@@ -11,7 +11,6 @@ using Microsoft.Extensions.DependencyInjection.Extensions;
using System;
using System.Runtime.CompilerServices;
using System.Linq;
using JT808.Protocol.DependencyInjection;

[assembly: InternalsVisibleTo("JT808.Gateway.TestHosting")]
[assembly: InternalsVisibleTo("JT808.Gateway.Test")]
@@ -28,7 +27,7 @@ namespace JT808.Gateway
/// <param name="jT808Builder"></param>
/// <param name="config"></param>
/// <returns></returns>
public static IJT808GatewayBuilder AddGateway(this IJT808DIBuilder jT808Builder, Action<JT808Configuration> config)
public static IJT808GatewayBuilder AddGateway(this IJT808Builder jT808Builder, Action<JT808Configuration> config)
{
JT808GatewayBuilderDefault jT808GatewayBuilderDefault = new JT808GatewayBuilderDefault(jT808Builder);
jT808GatewayBuilderDefault.JT808Builder.Services.Configure(config);
@@ -41,7 +40,7 @@ namespace JT808.Gateway
/// <param name="jT808Builder"></param>
/// <param name="configuration"></param>
/// <returns></returns>
public static IJT808GatewayBuilder AddGateway(this IJT808DIBuilder jT808Builder, IConfiguration configuration)
public static IJT808GatewayBuilder AddGateway(this IJT808Builder jT808Builder, IConfiguration configuration)
{
JT808GatewayBuilderDefault jT808GatewayBuilderDefault = new JT808GatewayBuilderDefault(jT808Builder);
jT808GatewayBuilderDefault.JT808Builder.Services.Configure<JT808Configuration>(configuration.GetSection("JT808Configuration"));


+ 1
- 1
src/PipelineInfo.props Näytä tiedosto

@@ -8,7 +8,7 @@
<PackageProjectUrl>https://github.com/SmallChi/JT808Gateway</PackageProjectUrl>
<licenseUrl>https://github.com/SmallChi/JT808Gateway/blob/master/LICENSE</licenseUrl>
<license>https://github.com/SmallChi/JT808Gateway/blob/master/LICENSE</license>
<Version>1.1.8-preview5</Version>
<Version>1.1.8-preview6</Version>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<AnalysisLevel>latest</AnalysisLevel>


Ladataan…
Peruuta
Tallenna