测试推送
This commit is contained in:
parent
9f32101ead
commit
e32be099eb
|
|
@ -9,6 +9,7 @@ using System.Linq;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using Waste.Application.SubscribeInfo;
|
||||||
|
|
||||||
namespace Waste.Application
|
namespace Waste.Application
|
||||||
{
|
{
|
||||||
|
|
@ -23,10 +24,12 @@ namespace Waste.Application
|
||||||
private static string ApiSecretHash = App.Configuration["SZDevPlatSetting:ApiSecretHash"];
|
private static string ApiSecretHash = App.Configuration["SZDevPlatSetting:ApiSecretHash"];
|
||||||
private readonly IHttpClientFactory _clientFactory;
|
private readonly IHttpClientFactory _clientFactory;
|
||||||
private readonly ILoggerService _loggerService;
|
private readonly ILoggerService _loggerService;
|
||||||
public TestAppService(ILoggerService loggerService, IHttpClientFactory clientFactory)
|
private readonly ISubscribeService _subscribeService;
|
||||||
|
public TestAppService(ILoggerService loggerService, IHttpClientFactory clientFactory, ISubscribeService subscribeService)
|
||||||
{
|
{
|
||||||
_loggerService = loggerService;
|
_loggerService = loggerService;
|
||||||
_clientFactory = clientFactory;
|
_clientFactory = clientFactory;
|
||||||
|
_subscribeService = subscribeService;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 接收测试
|
/// 接收测试
|
||||||
|
|
@ -47,6 +50,29 @@ namespace Waste.Application
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
[HttpGet]
|
||||||
|
public async Task TestThirdSendAsync()
|
||||||
|
{
|
||||||
|
await _subscribeService.SeedThirdMessageAsync(new SendThirdMessageSubscriDto {
|
||||||
|
Url= "https://localhost:44335/api/test/recv",
|
||||||
|
WasteType= "\u0000\u0000\u0000\u0000纸壳",
|
||||||
|
Weight="20.9",
|
||||||
|
TrashCode="0",
|
||||||
|
Time= 1653033312,
|
||||||
|
Body="",
|
||||||
|
DeviceId= Guid.Parse("39fcdce8-9e54-b87f-fc8e-616a9072c224")
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpPost]
|
||||||
|
public void Recv(SendMessageToThirdS2CDto input)
|
||||||
|
{
|
||||||
|
var a = input;
|
||||||
|
}
|
||||||
|
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
public async Task TestSendAsync()
|
public async Task TestSendAsync()
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,8 @@ using Microsoft.Net.Http.Headers;
|
||||||
using Nirvana.Common;
|
using Nirvana.Common;
|
||||||
using Nirvana.Common.File;
|
using Nirvana.Common.File;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Waste.Application.SubscribeInfo;
|
using Waste.Application.SubscribeInfo;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2163,6 +2163,11 @@
|
||||||
额外信息
|
额外信息
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="P:Waste.Application.SubscribeInfo.SendMessageToThirdS2CDto.DeviceId">
|
||||||
|
<summary>
|
||||||
|
设备ID
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
<member name="T:Waste.Application.SubscribeInfo.ISubscribeService">
|
<member name="T:Waste.Application.SubscribeInfo.ISubscribeService">
|
||||||
<summary>
|
<summary>
|
||||||
CAP订阅相关接口
|
CAP订阅相关接口
|
||||||
|
|
@ -2556,6 +2561,12 @@
|
||||||
<param name="data"></param>
|
<param name="data"></param>
|
||||||
<returns></returns>
|
<returns></returns>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:Waste.Application.TestAppService.TestThirdSendAsync">
|
||||||
|
<summary>
|
||||||
|
|
||||||
|
</summary>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
<member name="T:Waste.Application.ThirdApiInfo.DevHeartRequestDto">
|
<member name="T:Waste.Application.ThirdApiInfo.DevHeartRequestDto">
|
||||||
<summary>
|
<summary>
|
||||||
心跳包上报数据
|
心跳包上报数据
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue