Open this page in the API Guide

INetworkHelperService.IsSecureConnection Method (Boolean, IDictionary<String, String>, IPAddress, Boolean)

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 (25.1.0.1000)
Syntax
bool IsSecureConnection(
	bool isSecureConnection,
	IDictionary<string, string?> requestHeaders,
	IPAddress? remoteIpAddress,
	bool requireTrustedProxy
)

Parameters

isSecureConnection
Type: System.Boolean
A value indicating whether the HTTP request indicates that it is already secure.
requestHeaders
Type: System.Collections.Generic.IDictionary<String, String>
The request headers (keys must be case-insensitive).
remoteIpAddress
Type: System.Net.IPAddress
The IP address associated with the request.
requireTrustedProxy
Type: System.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

Type: Boolean
true if the connection is secure; otherwise, false.
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 false).
See Also