NucuCar/NucuCar.Domain/Telemetry/ITelemetryPublisher.cs
2019-11-17 18:27:58 +02:00

19 lines
No EOL
557 B
C#

using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
namespace NucuCar.Domain.Telemetry
{
public interface ITelemetryPublisher
{
void Start();
Task StartAsync();
void SetLogger(ILogger logger);
void Configure(Dictionary<string, object> config);
bool RegisterTelemeter(ITelemeter t);
bool UnRegisterTelemeter(ITelemeter t);
Task PublishAsync(CancellationToken cancellationToken);
bool Publish(int timeout);
}
}