INetworkHelperServiceIsSecureConnection(Boolean, IDictionaryString, String, IPAddress, Boolean) Method

Determines whether the specified request uses a secure (HTTPS) connection from the point-of-view of the browser.

Namespace: Dundas.BI.Services
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (26.2.0.1000)
Syntax
bool IsSecureConnection(
	bool isSecureConnection,
	IDictionary<string, string?> requestHeaders,
	IPAddress? remoteIpAddress,
	bool requireTrustedProxy
)

Parameters

isSecureConnection  Boolean
A value indicating whether the HTTP request indicates that it is already secure.
requestHeaders  IDictionaryString, String
The request headers (keys must be case-insensitive).
remoteIpAddress  IPAddress
The IP address associated with the request.
requireTrustedProxy  Boolean
A value indicating whether a trusted proxy server is required when HTTP headers (e.g. X-Forwarded-Proto) are used to determine the result.

Return Value

Boolean
if the connection is secure; otherwise, .
Remarks
In addition to isSecureConnection, this method considers the values of the X-Forwarded-Proto and X-Forwarded-Protocol (as long as the IP address is a trusted proxy IP or requireTrustedProxy is ).
See Also