@@ -6,6 +6,10 @@ | |||||
<Authors>SmallChi(Koike)</Authors> | <Authors>SmallChi(Koike)</Authors> | ||||
<GeneratePackageOnBuild>false</GeneratePackageOnBuild> | <GeneratePackageOnBuild>false</GeneratePackageOnBuild> | ||||
<SignAssembly>false</SignAssembly> | <SignAssembly>false</SignAssembly> | ||||
<RepositoryUrl>https://github.com/SmallChi/JT808Gateway</RepositoryUrl> | |||||
<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> | |||||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | <PackageLicenseFile>LICENSE</PackageLicenseFile> | ||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> | <PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> | ||||
<Description>基于Pipeline实现的JT808Gateway的抽象库</Description> | <Description>基于Pipeline实现的JT808Gateway的抽象库</Description> | ||||
@@ -1,16 +1,16 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk"> | <Project Sdk="Microsoft.NET.Sdk"> | ||||
<PropertyGroup> | <PropertyGroup> | ||||
<TargetFramework>netstandard2.0</TargetFramework> | |||||
<TargetFramework>netstandard2.1</TargetFramework> | |||||
<LangVersion>8.0</LangVersion> | <LangVersion>8.0</LangVersion> | ||||
<Copyright>Copyright 2018.</Copyright> | |||||
<Copyright>Copyright 2019.</Copyright> | |||||
<Authors>SmallChi(Koike)</Authors> | <Authors>SmallChi(Koike)</Authors> | ||||
<RepositoryUrl>https://github.com/SmallChi/JT808DotNetty</RepositoryUrl> | |||||
<PackageProjectUrl>https://github.com/SmallChi/JT808DotNetty</PackageProjectUrl> | |||||
<licenseUrl>https://github.com/SmallChi/JT808DotNetty/blob/master/LICENSE</licenseUrl> | |||||
<license>https://github.com/SmallChi/JT808DotNetty/blob/master/LICENSE</license> | |||||
<RepositoryUrl>https://github.com/SmallChi/JT808Gateway</RepositoryUrl> | |||||
<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> | |||||
<GeneratePackageOnBuild>false</GeneratePackageOnBuild> | <GeneratePackageOnBuild>false</GeneratePackageOnBuild> | ||||
<Version>1.0.0-preview1</Version> | |||||
<Version>1.0.0-preview2</Version> | |||||
<SignAssembly>false</SignAssembly> | <SignAssembly>false</SignAssembly> | ||||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | <PackageLicenseFile>LICENSE</PackageLicenseFile> | ||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> | <PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> | ||||
@@ -20,12 +20,12 @@ | |||||
<PackageReleaseNotes>基于Kafka的JT808消息发布与订阅</PackageReleaseNotes> | <PackageReleaseNotes>基于Kafka的JT808消息发布与订阅</PackageReleaseNotes> | ||||
</PropertyGroup> | </PropertyGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<PackageReference Include="Confluent.Kafka" Version="1.2.1" /> | |||||
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="3.0.0" /> | |||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="3.0.0" /> | |||||
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="3.0.0" /> | |||||
<PackageReference Include="Microsoft.Extensions.Options" Version="3.0.0" /> | |||||
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="3.0.0" /> | |||||
<PackageReference Include="Confluent.Kafka" Version="1.3.0" /> | |||||
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="3.1.0" /> | |||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="3.1.0" /> | |||||
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="3.1.0" /> | |||||
<PackageReference Include="Microsoft.Extensions.Options" Version="3.1.0" /> | |||||
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="3.1.0" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
@@ -33,7 +33,7 @@ | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<ProjectReference Include="..\JT808.Gateway\JT808.Gateway.csproj" /> | |||||
<ProjectReference Include="..\JT808.Gateway.Abstractions\JT808.Gateway.Abstractions.csproj" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
</Project> | </Project> |
@@ -1,4 +1,5 @@ | |||||
using JT808.Protocol; | |||||
using JT808.Gateway.Abstractions; | |||||
using JT808.Protocol; | |||||
using Microsoft.Extensions.DependencyInjection; | using Microsoft.Extensions.DependencyInjection; | ||||
using Microsoft.Extensions.DependencyInjection.Extensions; | using Microsoft.Extensions.DependencyInjection.Extensions; | ||||
using System; | using System; | ||||
@@ -1,6 +1,6 @@ | |||||
using JJT808.Gateway.Kafka; | using JJT808.Gateway.Kafka; | ||||
using JT808.Gateway.Configs.Kafka; | using JT808.Gateway.Configs.Kafka; | ||||
using JT808.Gateway.PubSub; | |||||
using JT808.Gateway.Abstractions; | |||||
using JT808.Protocol; | using JT808.Protocol; | ||||
using Microsoft.Extensions.Configuration; | using Microsoft.Extensions.Configuration; | ||||
using Microsoft.Extensions.DependencyInjection; | using Microsoft.Extensions.DependencyInjection; | ||||
@@ -1,6 +1,6 @@ | |||||
using Confluent.Kafka; | using Confluent.Kafka; | ||||
using JT808.Gateway.Configs.Kafka; | using JT808.Gateway.Configs.Kafka; | ||||
using JT808.Gateway.PubSub; | |||||
using JT808.Gateway.Abstractions; | |||||
using Microsoft.Extensions.Logging; | using Microsoft.Extensions.Logging; | ||||
using Microsoft.Extensions.Options; | using Microsoft.Extensions.Options; | ||||
using System; | using System; | ||||
@@ -1,6 +1,6 @@ | |||||
using Confluent.Kafka; | using Confluent.Kafka; | ||||
using JT808.Gateway.Configs.Kafka; | using JT808.Gateway.Configs.Kafka; | ||||
using JT808.Gateway.PubSub; | |||||
using JT808.Gateway.Abstractions; | |||||
using Microsoft.Extensions.Options; | using Microsoft.Extensions.Options; | ||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
@@ -26,7 +26,7 @@ namespace JT808.Gateway.Kafka | |||||
producer.Dispose(); | producer.Dispose(); | ||||
} | } | ||||
public async Task ProduceAsync(string terminalNo, byte[] data) | |||||
public async ValueTask ProduceAsync(string terminalNo, byte[] data) | |||||
{ | { | ||||
await producer.ProduceAsync(TopicName, new Message<string, byte[]> | await producer.ProduceAsync(TopicName, new Message<string, byte[]> | ||||
{ | { | ||||
@@ -1,6 +1,6 @@ | |||||
using Confluent.Kafka; | using Confluent.Kafka; | ||||
using JT808.Gateway.Configs.Kafka; | using JT808.Gateway.Configs.Kafka; | ||||
using JT808.Gateway.PubSub; | |||||
using JT808.Gateway.Abstractions; | |||||
using Microsoft.Extensions.Logging; | using Microsoft.Extensions.Logging; | ||||
using Microsoft.Extensions.Options; | using Microsoft.Extensions.Options; | ||||
using System; | using System; | ||||
@@ -1,6 +1,6 @@ | |||||
using Confluent.Kafka; | using Confluent.Kafka; | ||||
using JT808.Gateway.Configs.Kafka; | using JT808.Gateway.Configs.Kafka; | ||||
using JT808.Gateway.PubSub; | |||||
using JT808.Gateway.Abstractions; | |||||
using Microsoft.Extensions.Options; | using Microsoft.Extensions.Options; | ||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
@@ -26,7 +26,7 @@ namespace JJT808.Gateway.Kafka | |||||
producer.Dispose(); | producer.Dispose(); | ||||
} | } | ||||
public async Task ProduceAsync(string terminalNo, byte[] data) | |||||
public async ValueTask ProduceAsync(string terminalNo, byte[] data) | |||||
{ | { | ||||
await producer.ProduceAsync(TopicName, new Message<string, byte[]> | await producer.ProduceAsync(TopicName, new Message<string, byte[]> | ||||
{ | { | ||||
@@ -1,5 +1,5 @@ | |||||
using JT808.Gateway.Configs.Kafka; | using JT808.Gateway.Configs.Kafka; | ||||
using JT808.Gateway.PubSub; | |||||
using JT808.Gateway.Abstractions; | |||||
using Microsoft.Extensions.Configuration; | using Microsoft.Extensions.Configuration; | ||||
using Microsoft.Extensions.DependencyInjection; | using Microsoft.Extensions.DependencyInjection; | ||||
using Microsoft.Extensions.DependencyInjection.Extensions; | using Microsoft.Extensions.DependencyInjection.Extensions; | ||||
@@ -1,6 +1,6 @@ | |||||
using Confluent.Kafka; | using Confluent.Kafka; | ||||
using JT808.Gateway.Configs.Kafka; | using JT808.Gateway.Configs.Kafka; | ||||
using JT808.Gateway.PubSub; | |||||
using JT808.Gateway.Abstractions; | |||||
using Microsoft.Extensions.Logging; | using Microsoft.Extensions.Logging; | ||||
using Microsoft.Extensions.Options; | using Microsoft.Extensions.Options; | ||||
using System; | using System; | ||||
@@ -1,6 +1,6 @@ | |||||
using Confluent.Kafka; | using Confluent.Kafka; | ||||
using JT808.Gateway.Configs.Kafka; | using JT808.Gateway.Configs.Kafka; | ||||
using JT808.Gateway.PubSub; | |||||
using JT808.Gateway.Abstractions; | |||||
using Microsoft.Extensions.Options; | using Microsoft.Extensions.Options; | ||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
@@ -26,7 +26,7 @@ namespace JT808.Gateway.Kafka | |||||
producer.Dispose(); | producer.Dispose(); | ||||
} | } | ||||
public async Task ProduceAsync(string notice,string terminalNo) | |||||
public async ValueTask ProduceAsync(string notice,string terminalNo) | |||||
{ | { | ||||
await producer.ProduceAsync(TopicName, new Message<string, string> | await producer.ProduceAsync(TopicName, new Message<string, string> | ||||
{ | { | ||||
@@ -11,6 +11,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "JT808.Gateway.Test", "JT808 | |||||
EndProject | EndProject | ||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "JT808.Gateway.Abstractions", "JT808.Gateway.Abstractions\JT808.Gateway.Abstractions.csproj", "{3AA17DF7-A1B3-449C-93C2-45B051C32933}" | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "JT808.Gateway.Abstractions", "JT808.Gateway.Abstractions\JT808.Gateway.Abstractions.csproj", "{3AA17DF7-A1B3-449C-93C2-45B051C32933}" | ||||
EndProject | EndProject | ||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "JT808.Gateway.Kafka", "JT808.Gateway.Kafka\JT808.Gateway.Kafka.csproj", "{274C048E-A8E3-4422-A578-A10A97DF36F2}" | |||||
EndProject | |||||
Global | Global | ||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||||
Debug|Any CPU = Debug|Any CPU | Debug|Any CPU = Debug|Any CPU | ||||
@@ -33,6 +35,10 @@ Global | |||||
{3AA17DF7-A1B3-449C-93C2-45B051C32933}.Debug|Any CPU.Build.0 = Debug|Any CPU | {3AA17DF7-A1B3-449C-93C2-45B051C32933}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||||
{3AA17DF7-A1B3-449C-93C2-45B051C32933}.Release|Any CPU.ActiveCfg = Release|Any CPU | {3AA17DF7-A1B3-449C-93C2-45B051C32933}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||||
{3AA17DF7-A1B3-449C-93C2-45B051C32933}.Release|Any CPU.Build.0 = Release|Any CPU | {3AA17DF7-A1B3-449C-93C2-45B051C32933}.Release|Any CPU.Build.0 = Release|Any CPU | ||||
{274C048E-A8E3-4422-A578-A10A97DF36F2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | |||||
{274C048E-A8E3-4422-A578-A10A97DF36F2}.Debug|Any CPU.Build.0 = Debug|Any CPU | |||||
{274C048E-A8E3-4422-A578-A10A97DF36F2}.Release|Any CPU.ActiveCfg = Release|Any CPU | |||||
{274C048E-A8E3-4422-A578-A10A97DF36F2}.Release|Any CPU.Build.0 = Release|Any CPU | |||||
EndGlobalSection | EndGlobalSection | ||||
GlobalSection(SolutionProperties) = preSolution | GlobalSection(SolutionProperties) = preSolution | ||||
HideSolutionNode = FALSE | HideSolutionNode = FALSE | ||||
@@ -7,6 +7,10 @@ | |||||
<Authors>SmallChi(Koike)</Authors> | <Authors>SmallChi(Koike)</Authors> | ||||
<GeneratePackageOnBuild>false</GeneratePackageOnBuild> | <GeneratePackageOnBuild>false</GeneratePackageOnBuild> | ||||
<SignAssembly>false</SignAssembly> | <SignAssembly>false</SignAssembly> | ||||
<RepositoryUrl>https://github.com/SmallChi/JT808Gateway</RepositoryUrl> | |||||
<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> | |||||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | <PackageLicenseFile>LICENSE</PackageLicenseFile> | ||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> | <PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> | ||||
<Description>基于Pipeline实现的JT808Gateway的网络库</Description> | <Description>基于Pipeline实现的JT808Gateway的网络库</Description> | ||||