using Hast.Common.Interfaces;
using Hast.Layer;
using static Hast.Communication.ProxyGenerator;
namespace Hast.Communication;
///
/// Generates proxies for objects whose logic is implemented as hardware to redirect member calls to the hardware
/// implementation.
///
public interface IProxyGenerator : ISingletonDependency
{
///
/// Returns a proxied version of via .
///
/// The type of the object to proxy.
T CreateCommunicationProxy(IHardwareRepresentation hardwareRepresentation, T target, IProxyGenerationConfiguration configuration)
where T : class;
}