C# Class WebApp.Controllers.Api.BaseController

Inheritance: Controller
Show file Open project: hudl/black-mesa

Public Methods

Method Description
BaseController ( ) : System.Configuration

Protected Methods

Method Description
GetPageSource ( string url, string>.Dictionary headers ) : Task
JsonNet ( object data, bool alreadyJson = false ) : System.Web.Mvc.JsonNetResult
OnServerCertificateValidationCallback ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool

Method Details

BaseController() public method

public BaseController ( ) : System.Configuration
return System.Configuration

GetPageSource() protected method

protected GetPageSource ( string url, string>.Dictionary headers ) : Task
url string
headers string>.Dictionary
return Task

JsonNet() protected static method

protected static JsonNet ( object data, bool alreadyJson = false ) : System.Web.Mvc.JsonNetResult
data object
alreadyJson bool
return System.Web.Mvc.JsonNetResult

OnServerCertificateValidationCallback() protected method

protected OnServerCertificateValidationCallback ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool
sender object
certificate System.Security.Cryptography.X509Certificates.X509Certificate
chain System.Security.Cryptography.X509Certificates.X509Chain
sslPolicyErrors SslPolicyErrors
return bool