cs-codex-dist-tests/GethPlugin/CoreInterfaceExtensions.cs

18 lines
395 B
C#

using Core;
namespace GethPlugin
{
public static class CoreInterfaceExtensions
{
public static IGethNodeInfo StartGethNode(this CoreInterface ci, Action<IGethSetup> setup)
{
return Plugin(ci).StartGeth(setup);
}
private static GethPlugin Plugin(CoreInterface ci)
{
return ci.GetPlugin<GethPlugin>();
}
}
}