public static void Start() { ApplicationStartup.Initialize(); var container = IoC.Container; using (container.OptimizeDependencyResolution()) { container.AddRegister(x => x.FromType <CoreRegister>()); container.AddRegister(x => x.FromType <PresenterRegister>()); container.AddRegister(x => x.FromType <InfrastructureRegister>()); container.AddRegister(x => x.FromType <BatchRegister>()); InfrastructureRegister.RegisterSerializationDependencies(); ApplicationStartup.RegisterCommands(container); var workspace = container.Resolve <IWorkspace>(); container.RegisterImplementationOf((IWithWorkspaceLayout)workspace); } }