35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
using JiShe.CollectBus.IotSystems.MeterReadingRecords;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading;
|
|
using System.Threading.Channels;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace JiShe.CollectBus.DataChannels
|
|
{
|
|
/// <summary>
|
|
/// 数据通道管理服务
|
|
/// </summary>
|
|
public interface IDataChannelManageService
|
|
{
|
|
#region 下发任务通道
|
|
|
|
/// <summary>
|
|
/// 定时任务数据通道写入
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
Task ScheduledMeterTaskWriterAsync(ChannelWriter<Tuple<string, List<MeterReadingTelemetryPacketInfo>>> _telemetryPacketInfoWriter, Tuple<string, List<MeterReadingTelemetryPacketInfo>> dataItems);
|
|
|
|
/// <summary>
|
|
/// 定时任务数据入库和Kafka推送通道
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
Task ScheduledMeterTaskReadingAsync(ChannelReader<Tuple<string, List<MeterReadingTelemetryPacketInfo>>> _telemetryPacketInfoReader,
|
|
CancellationToken cancellationToken);
|
|
#endregion
|
|
}
|
|
}
|