static void Main(string[] args) { var myType = SmObjectFactory.Container.GetInstance<IMyType>(); myType.DoSomething("Test", 1); }