using System;

namespace QC.QSPRAutomation.Internal;

public class GetGlobalVariableShim : MarshalByRefObject
{
	private GetGlobalVariableDelegate target;

	private GetGlobalVariableShim()
	{
	}

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

	public static GetGlobalVariableDelegate Wrap(GetGlobalVariableDelegate handler)
	{
		GetGlobalVariableShim getGlobalVariableShim = new GetGlobalVariableShim();
		getGlobalVariableShim.target = handler;
		return getGlobalVariableShim.DoInvoke;
	}

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