private static Task Main(string[] args) { var serviceProvider = DiConfiguration.Configure(); var instance = serviceProvider.GetService <AppInstance>(); return(instance.Start()); }
protected void Application_Start() { GlobalConfiguration.Configure(WebApiConfig.Register); DiConfiguration.Configure(); }
// 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); }