namespace ZB.MOM.WW.MxGateway.Worker.MxAccess;

public interface IMxAccessEventSink
{
    /// <summary>Attaches the event sink to an MXAccess COM object.</summary>
    /// <param name="mxAccessComObject">The MXAccess COM object.</param>
    /// <param name="sessionId">The session ID.</param>
    void Attach(
        object mxAccessComObject,
        string sessionId);

    /// <summary>Detaches the event sink from the COM object.</summary>
    void Detach();
}
