17 lines
417 B
C#
17 lines
417 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace FinlyticSimulation.Services.Mqtt;
|
|
|
|
public interface ISimulationRpcClient
|
|
{
|
|
Task<TResponse?> SendRpcRequestAsync<TResponse, TRequest>(
|
|
string channel,
|
|
TRequest requestData,
|
|
TimeSpan? timeout = null)
|
|
where TResponse : class
|
|
where TRequest : class;
|
|
|
|
Task PublishAsync<T>(string topic, T data, bool retain = false);
|
|
}
|