Class ServerController
Inheritance
ServerController
Assembly: DotNetNuke.dll
Syntax
public class ServerController
Constructors
ServerController()
Declaration
public ServerController()
Fields
DefaultUrlAdapter
Declaration
public const string DefaultUrlAdapter = "DotNetNuke.Entities.Host.ServerWebRequestAdapter, DotNetNuke"
Field Value
Properties
UseAppName
Declaration
public static bool UseAppName { get; }
Property Value
Methods
ClearCachedServers()
Declaration
public static void ClearCachedServers()
DeleteServer(int)
Declaration
public static void DeleteServer(int serverID)
Parameters
Type |
Name |
Description |
int |
serverID |
|
GetEnabledServers()
Declaration
public static List<ServerInfo> GetEnabledServers()
Returns
GetEnabledServersWithActivity(int)
Declaration
public static List<ServerInfo> GetEnabledServersWithActivity(int lastMinutes = 10)
Parameters
Type |
Name |
Description |
int |
lastMinutes |
|
Returns
GetExecutingServerName()
Declaration
public static string GetExecutingServerName()
Returns
GetInActiveServers(int)
Declaration
public static List<ServerInfo> GetInActiveServers(int lastMinutes = 1440)
Parameters
Type |
Name |
Description |
int |
lastMinutes |
|
Returns
GetServerName(ServerInfo)
Declaration
public static string GetServerName(ServerInfo webServer)
Parameters
Returns
GetServerWebRequestAdapter()
Declaration
public static IServerWebRequestAdapter GetServerWebRequestAdapter()
Returns
GetServers()
Declaration
public static List<ServerInfo> GetServers()
Returns
UpdateServer(ServerInfo)
Declaration
public static void UpdateServer(ServerInfo server)
Parameters
UpdateServerActivity(ServerInfo)
Declaration
public static void UpdateServerActivity(ServerInfo server)
Parameters
Extension Methods