public interface IInputAction
public class InputAction : IInputAction
public static void Main(string[] args)
var container = new Container(config =>
config.For<IInputAction>().Use<InputAction>().Singleton();
config.ForConcreteType<InputAction>().Configure.Singleton();
var action1 = container.GetInstance<IInputAction>();
var action2 = container.GetInstance<InputAction>();
Console.WriteLine(action1 == action2);