diff options
| author | Jim Cartlidge <jimcartlidge@yahoo.co.uk> | 2020-09-14 15:46:38 +0100 |
|---|---|---|
| committer | Jim Cartlidge <jimcartlidge@yahoo.co.uk> | 2020-09-14 15:46:38 +0100 |
| commit | b44455ad0d6e78b5baed535c06a7f7d49116d1ee (patch) | |
| tree | 5a303cb80f2f83d2ebe48373a4765fa7dd7b25be /MediaBrowser.Controller/IServerApplicationHost.cs | |
| parent | 288d89493e76b8881c719fe549859b2c0b5f7e29 (diff) | |
Update based on PR1 changes.
Diffstat (limited to 'MediaBrowser.Controller/IServerApplicationHost.cs')
| -rw-r--r-- | MediaBrowser.Controller/IServerApplicationHost.cs | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/MediaBrowser.Controller/IServerApplicationHost.cs b/MediaBrowser.Controller/IServerApplicationHost.cs index f147e6a86..7bc1006fc 100644 --- a/MediaBrowser.Controller/IServerApplicationHost.cs +++ b/MediaBrowser.Controller/IServerApplicationHost.cs @@ -63,12 +63,28 @@ namespace MediaBrowser.Controller PublicSystemInfo GetPublicSystemInfo(IPAddress address); /// <summary> - /// Gets a local (LAN) URL that can be used to access the API. The hostname used is the first valid configured - /// HTTPS will be preferred when available. + /// Gets a URL specific for the request. /// </summary> - /// <param name="source">The source of the request.</param> - /// <returns>The server URL.</returns> - string GetSmartApiUrl(object source); + /// <param name="request">The <see cref="HttpRequest"/> instance.</param> + /// <param name="port">Optional port number.</param> + /// <returns>An accessible URL.</returns> + string GetSmartApiUrl(HttpRequest request, int? port = null); + + /// <summary> + /// Gets a URL specific for the request. + /// </summary> + /// <param name="remoteAddr">The remote <see cref="IPAddress"/> of the connection.</param> + /// <param name="port">Optional port number.</param> + /// <returns>An accessible URL.</returns> + string GetSmartApiUrl(IPAddress remoteAddr, int? port = null); + + /// <summary> + /// Gets a URL specific for the request. + /// </summary> + /// <param name="hostname">The hostname used in the connection.</param> + /// <param name="port">Optional port number.</param> + /// <returns>An accessible URL.</returns> + string GetSmartApiUrl(string hostname, int? port = null); /// <summary> /// Gets a localhost URL that can be used to access the API using the loop-back IP address. |
