using System;

namespace QC.QSPRAutomation.Internal;

public class SendMenuMessageToQSPRShim : MarshalByRefObject
{
	private SendMenuMessageToQSPRDelegate target;

	private SendMenuMessageToQSPRShim()
	{
	}

	public void DoInvoke(string message)
	{
		target(message);
	}

	public static SendMenuMessageToQSPRDelegate Wrap(SendMenuMessageToQSPRDelegate handler)
	{
		SendMenuMessageToQSPRShim sendMenuMessageToQSPRShim = new SendMenuMessageToQSPRShim();
		sendMenuMessageToQSPRShim.target = handler;
		return sendMenuMessageToQSPRShim.DoInvoke;
	}

	public override object InitializeLifetimeService()
	{
		return null;
	}
}
