Exemplo n.º 1
0
        private static Task Main(string[] args)
        {
            var serviceProvider = DiConfiguration.Configure();
            var instance        = serviceProvider.GetService <AppInstance>();

            return(instance.Start());
        }
Exemplo n.º 2
0
 protected void Application_Start()
 {
     GlobalConfiguration.Configure(WebApiConfig.Register);
     DiConfiguration.Configure();
 }
Exemplo n.º 3
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddMvc();

            DiConfiguration.Configure(services, Configuration);
        }