public static void Start() { //Register the file repository to use LocalFileRepository. BusinessComponent.Kernel.Bind <IFileRepository>().To <LocalFileRepository>(); LocalFileRepository.LocalFileRepositoryPath = ConfigurationManager.AppSettings["LocalFileRepository.LocalFileRepositoryPath"]; //TODO: Register your business components here. BusinessComponent.RegisterComponent(SampleDomainBusinessComponent.Current); BusinessComponent.StartAll(); //Defines the user context the shared UserContext will use UserContext.CreateDefaultContext = () => new Sample.Domain.UserContext(); }