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

            return(instance.Start());
        }
Example #2
0
 protected void Application_Start()
 {
     GlobalConfiguration.Configure(WebApiConfig.Register);
     DiConfiguration.Configure();
 }
Example #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);
        }