- Timestamp:
- 03/11/16 12:56:12 (8 years ago)
- Location:
- branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager
-
Property
svn:ignore
set to
project.lock.json
-
Property
svn:ignore
set to
-
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Startup.cs
r13656 r13689 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Threading.Tasks; 5 using Microsoft.AspNet.Builder; 1 using Microsoft.AspNet.Builder; 6 2 using Microsoft.AspNet.Hosting; 7 using Microsoft.AspNet.Http;8 3 using Microsoft.Extensions.DependencyInjection; 9 4 using HeuristicLab.Clients.Hive.WebJobManager.Services; … … 11 6 using HeuristicLab.Common; 12 7 using HeuristicLab.Core; 8 using HeuristicLab.PluginInfrastructure; 9 13 10 14 11 namespace HeuristicLab.Clients.Hive.WebJobManager … … 16 13 public class Startup 17 14 { 18 private IHostingEnvironment hostingEnvironment; 15 public IHostingEnvironment hostingEnvironment { 16 get; set; } 19 17 public Startup(IHostingEnvironment hostingEnvironment) 20 18 { … … 23 21 .AddEnvironmentVariables(); 24 22 var config = builder.Build(); 23 24 ApplicationManager.InitializeForWeb(); 25 26 25 27 ContentManager.Initialize(new PersistenceContentManager()); 26 28 //Console.WriteLine(""+ config.Get("configuration")); … … 34 36 services.AddMvc(); 35 37 services.AddSingleton<ILoginViewModelService, LoginViewModelService>(); 38 services.AddSingleton<IHiveServiceLocator, HiveServiceLocatorWebManagerService>(); 39 services.AddSignalR(); 36 40 } 37 41 … … 39 43 public void Configure(IApplicationBuilder app) 40 44 { 45 41 46 if (hostingEnvironment.IsDevelopment()) 42 47 app.UseDeveloperExceptionPage(); 43 48 44 49 app.UseIISPlatformHandler(); 50 51 app.UseStaticFiles(); 52 app.UseSignalR(); 53 app.UseStatusCodePages(); 54 app.UseMvcWithDefaultRoute(); 55 } 45 56 46 app.UseMvcWithDefaultRoute(); 47 app.UseStaticFiles(); 48 app.UseStatusCodePages(); 49 } 57 50 58 51 59 // Entry point for the application.
Note: See TracChangeset
for help on using the changeset viewer.