using System;

namespace QC.QSPRAutomation.Internal;

public class AppendToLogShim : MarshalByRefObject
{
	private AppendToLogDelegate target;

	private AppendToLogShim()
	{
	}

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

	public static AppendToLogDelegate Wrap(AppendToLogDelegate handler)
	{
		AppendToLogShim appendToLogShim = new AppendToLogShim();
		appendToLogShim.target = handler;
		return appendToLogShim.DoInvoke;
	}

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