using System;

namespace QC.QSPRAutomation.Internal;

public class SetGlobalVariableShim : MarshalByRefObject
{
	private SetGlobalVariableDelegate target;

	private SetGlobalVariableShim()
	{
	}

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

	public static SetGlobalVariableDelegate Wrap(SetGlobalVariableDelegate handler)
	{
		SetGlobalVariableShim setGlobalVariableShim = new SetGlobalVariableShim();
		setGlobalVariableShim.target = handler;
		return setGlobalVariableShim.DoInvoke;
	}

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