using Castle.DynamicProxy; using Hast.Common.Interfaces; using Hast.Communication.Extensibility; using Hast.Communication.Extensibility.Events; using Hast.Layer; using System; 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 { event EventHandler MemberExecutedOnHardware; event EventHandler MemberInvoking; MemberInvocationHandler CreateMemberInvocationHandler(IHardwareRepresentation hardwareRepresentation, object target, IProxyGenerationConfiguration configuration); } }