| 12345678910111213141516171819202122232425 |
- using System;
- using System.Collections.Generic;
- using System.Threading;
- using System.Threading.Tasks;
- namespace TeamAAS_VP.Interfaces
- {
- /// <summary>
- /// MES 通信服务接口,提供通过配置的 URL 执行过站及提交信息的 GET 请求。
- /// </summary>
- public interface IMesService : IDisposable
- {
- /// <summary>
- /// 使用配置的过站 URL 发起 GET 请求。可传入额外的查询参数。
- /// 返回 (IsSuccess, ResponseString)。
- /// </summary>
- Task<(bool IsSuccess, string Response)> StationGetAsync(IDictionary<string, string> queryParameters = null, CancellationToken cancellationToken = default);
- /// <summary>
- /// 使用配置的提交 URL 发起 GET 请求。可传入额外的查询参数。
- /// 返回 (IsSuccess, ResponseString)。
- /// </summary>
- Task<(bool IsSuccess, string Response)> SubmitGetAsync(IDictionary<string, string> queryParameters = null, CancellationToken cancellationToken = default);
- }
- }
|