using System;

namespace QC.QSPRAutomation.Internal;

public class TestMessageShim : MarshalByRefObject
{
	private TestMessageReceivedDelegate target;

	private TestMessageShim()
	{
	}

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

	public static TestMessageReceivedDelegate Wrap(TestMessageReceivedDelegate handler)
	{
		TestMessageShim testMessageShim = new TestMessageShim();
		testMessageShim.target = handler;
		return testMessageShim.DoInvoke;
	}

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