diff options
| author | Bond-009 <bond.009@outlook.com> | 2019-03-07 22:54:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-07 22:54:02 +0100 |
| commit | 757e0194b9985c204a4dcfb105f091fd1100bb44 (patch) | |
| tree | aa2cd8253d58b6d9264c37fcece7430a3cf16ec6 /Emby.Server.Implementations/HttpServer/HttpListenerHost.cs | |
| parent | 669c48cc8bd6b9023d54a38c8e8b7f4120cb7368 (diff) | |
| parent | e3b844b5aa34ef6a8f4a23c053115f4eabadcbf7 (diff) | |
Merge pull request #1067 from cvium/add_urlprefixes
Add urlprefixes during init
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/HttpListenerHost.cs')
| -rw-r--r-- | Emby.Server.Implementations/HttpServer/HttpListenerHost.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs b/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs index eab755cef..e8d47cad5 100644 --- a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs +++ b/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs @@ -676,10 +676,12 @@ namespace Emby.Server.Implementations.HttpServer /// Adds the rest handlers. /// </summary> /// <param name="services">The services.</param> - public void Init(IEnumerable<IService> services, IEnumerable<IWebSocketListener> listeners) + /// <param name="listeners"></param> + /// <param name="urlPrefixes"></param> + public void Init(IEnumerable<IService> services, IEnumerable<IWebSocketListener> listeners, IEnumerable<string> urlPrefixes) { _webSocketListeners = listeners.ToArray(); - + UrlPrefixes = urlPrefixes.ToArray(); ServiceController = new ServiceController(); Logger.LogInformation("Calling ServiceStack AppHost.Init"); |
