public interface IInputAction
public class InputAction : IInputAction
public class InputAction2 : IInputAction
public static void Main(string[] args)
var container = new Container(config =>
scanner.TheCallingAssembly();
scanner.AddAllTypesOf<IInputAction>();
config.For<IInputAction>().Singleton();
var action1 = container.GetAllInstances<IInputAction>();
var action2 = container.GetInstance<InputAction>();
Console.WriteLine(action1.First() == action2);