using System.Threading;
using System.Threading.Tasks;
namespace ZB.MOM.WW.OtOpcUa.Driver.Historian.Wonderware.Ipc;
///
/// Strategy for handling each post-Hello frame the sidecar's
/// reads. Implementations deserialize the body per the , dispatch
/// to the historian, and write the corresponding reply through the supplied
/// .
///
public interface IFrameHandler
{
/// Handles a frame from the sidecar frame server.
/// The type of message being handled.
/// The serialized message body.
/// The frame writer to send responses.
/// Cancellation token for the operation.
Task HandleAsync(MessageKind kind, byte[] body, FrameWriter writer, CancellationToken ct);
}