using System;

namespace QC.QSPRAutomation.Internal;

public class SendMessageFromQSPRShim : MarshalByRefObject
{
	private SendMessageFromQSPRDelegate target;

	private SendMessageFromQSPRShim()
	{
	}

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

	public static SendMessageFromQSPRDelegate Wrap(SendMessageFromQSPRDelegate handler)
	{
		SendMessageFromQSPRShim sendMessageFromQSPRShim = new SendMessageFromQSPRShim();
		sendMessageFromQSPRShim.target = handler;
		return sendMessageFromQSPRShim.DoInvoke;
	}

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