aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Core
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-11-12 02:49:33 -0500
committerGitHub <noreply@github.com>2016-11-12 02:49:33 -0500
commitd5197eabb0b2ac375cd7610aa7cc4a7e61a88245 (patch)
tree0f05bf569a19c75b9654af69d8356c67ff0c2de0 /Emby.Server.Core
parent67b69ceb9418ef530296238d1776894b675f4c5e (diff)
parent6865bb53530abbf703b590dd39cfa27274b03107 (diff)
Merge pull request #2283 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Core')
-rw-r--r--Emby.Server.Core/ApplicationHost.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Emby.Server.Core/ApplicationHost.cs b/Emby.Server.Core/ApplicationHost.cs
index 9e0aee325..0c0ef894e 100644
--- a/Emby.Server.Core/ApplicationHost.cs
+++ b/Emby.Server.Core/ApplicationHost.cs
@@ -554,7 +554,7 @@ namespace Emby.Server.Core
ZipClient = new ZipClient(FileSystemManager);
RegisterSingleInstance(ZipClient);
- RegisterSingleInstance<IHttpResultFactory>(new HttpResultFactory(LogManager, FileSystemManager, JsonSerializer, XmlSerializer));
+ RegisterSingleInstance<IHttpResultFactory>(new HttpResultFactory(LogManager, FileSystemManager, JsonSerializer, MemoryStreamFactory));
RegisterSingleInstance<IServerApplicationHost>(this);
RegisterSingleInstance<IServerApplicationPaths>(ApplicationPaths);
@@ -614,6 +614,9 @@ namespace Emby.Server.Core
RegisterSingleInstance<ISearchEngine>(() => new SearchEngine(LogManager, LibraryManager, UserManager));
+ CertificatePath = GetCertificatePath(true);
+ Certificate = GetCertificate(CertificatePath);
+
HttpServer = HttpServerFactory.CreateServer(this, LogManager, ServerConfigurationManager, NetworkManager, MemoryStreamFactory, "Emby", "web/index.html", textEncoding, SocketFactory, CryptographyProvider, JsonSerializer, XmlSerializer, EnvironmentInfo, Certificate);
HttpServer.GlobalResponse = LocalizationManager.GetLocalizedString("StartupEmbyServerIsLoading");
RegisterSingleInstance(HttpServer, false);
@@ -995,9 +998,6 @@ namespace Emby.Server.Core
/// </summary>
private void StartServer()
{
- CertificatePath = GetCertificatePath(true);
- Certificate = GetCertificate(CertificatePath);
-
try
{
ServerManager.Start(GetUrlPrefixes());