edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/IEdgeAgentConnection.cs (18 lines of code) (raw):
// Copyright (c) Microsoft. All rights reserved.
namespace Microsoft.Azure.Devices.Edge.Agent.IoTHub
{
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Azure.Devices.Client;
using Microsoft.Azure.Devices.Edge.Agent.Core;
using Microsoft.Azure.Devices.Edge.Util;
using Microsoft.Azure.Devices.Shared;
public interface IEdgeAgentConnection : IDisposable
{
Option<TwinCollection> ReportedProperties { get; }
IModuleConnection ModuleConnection { get; }
Task<Option<DeploymentConfigInfo>> GetDeploymentConfigInfoAsync();
Task<bool> UpdateReportedPropertiesAsync(TwinCollection patch);
//// Task SendEventBatchAsync(IEnumerable<Message> messages);
Task SendEventAsync(Message message);
}
}