using System;

namespace QC.QSPRAutomation.Internal;

public class GlobalVaiablesModifiedShim : MarshalByRefObject
{
	private GlobalVaiablesModifiedDelegate target;

	private GlobalVaiablesModifiedShim()
	{
	}

	public void DoInvoke(string variableName, string value)
	{
		target(variableName, value);
	}

	public static GlobalVaiablesModifiedDelegate Wrap(GlobalVaiablesModifiedDelegate handler)
	{
		GlobalVaiablesModifiedShim globalVaiablesModifiedShim = new GlobalVaiablesModifiedShim();
		globalVaiablesModifiedShim.target = handler;
		return globalVaiablesModifiedShim.DoInvoke;
	}

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