Exemple #1
0
        protected override void OnStart(string[] args)
        {
            var bootstrap = new ServerBootstrap();

            using (var scope = ObjectHost.Host.BeginLifetimeScope())
            {
                bootstrap.AddFilters(scope.Resolve <AuthenticationValidationFilter>());
                bootstrap.StartUp(null, new Module[] { new ModelModule(), new RepositoryModule() });
            }
        }