using System;

namespace QC.QSPRAutomation.Internal;

public class PingShim : MarshalByRefObject
{
	private PingDelegate target;

	private PingShim()
	{
	}

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

	public static PingDelegate Wrap(PingDelegate handler)
	{
		PingShim pingShim = new PingShim();
		pingShim.target = handler;
		return pingShim.DoInvoke;
	}

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