• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class ServerWebRequestAdapter

Inheritance
System.Object
ServerWebRequestAdapter
Implements
IServerWebRequestAdapter
Namespace: DotNetNuke.Entities.Host
Assembly: DotNetNuke.dll
Syntax
public class ServerWebRequestAdapter : object, IServerWebRequestAdapter

Methods

| Improve this Doc View Source

CheckResponse(HttpWebResponse, ServerInfo, ref HttpStatusCode)

Check whether response is return from correct server.

Declaration
public virtual void CheckResponse(HttpWebResponse response, ServerInfo server, ref HttpStatusCode statusCode)
Parameters
Type Name Description
HttpWebResponse response

The Http Response Object.

ServerInfo server
HttpStatusCode statusCode

Out status code if you think the status need change.

| Improve this Doc View Source

GetServerUniqueId()

Get the server's unique id when server is behind affinity tool.

Declaration
public virtual string GetServerUniqueId()
Returns
Type Description
System.String

The ID.

| Improve this Doc View Source

GetServerUrl()

Get the server's endpoint which can access the server directly.

Declaration
public virtual string GetServerUrl()
Returns
Type Description
System.String

The URL or .

| Improve this Doc View Source

ProcessRequest(HttpWebRequest, ServerInfo)

Process Request before the request send to server.

Declaration
public virtual void ProcessRequest(HttpWebRequest request, ServerInfo server)
Parameters
Type Name Description
HttpWebRequest request

The Http Request Object.

ServerInfo server

The Server Info Object.

Implements

IServerWebRequestAdapter

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS