using Castle.DynamicProxy;
using Hast.Layer;
using Orchard;
namespace Hast.Communication
{
///
/// Delegate for handling member invocations of objects whose logic is implemented as hardware.
///
/// The context of the member invocation.
///
/// True if the member invocation was successfully transferred to the hardware implementation, false
/// otherwise.
///
public delegate void MemberInvocationHandler(IInvocation invocation);
///
/// Creates delegates that will handle member invocations issued to members of objects whose logic is implemented
/// as hardware.
///
public interface IMemberInvocationHandlerFactory : ISingletonDependency
{
MemberInvocationHandler CreateMemberInvocationHandler(IHardwareRepresentation hardwareRepresentation, object target, IProxyGenerationConfiguration configuration);
}
}