Class ServerController
Inheritance
System.Object
ServerController
Assembly: DotNetNuke.dll
Syntax
public class ServerController : object
Fields
|
Improve this Doc
View Source
DefaultUrlAdapter
Declaration
public const string DefaultUrlAdapter = null
Field Value
Type |
Description |
System.String |
|
Properties
|
Improve this Doc
View Source
UseAppName
Declaration
public static bool UseAppName { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
|
Improve this Doc
View Source
ClearCachedServers()
Declaration
public static void ClearCachedServers()
|
Improve this Doc
View Source
DeleteServer(Int32)
Declaration
public static void DeleteServer(int serverID)
Parameters
Type |
Name |
Description |
System.Int32 |
serverID |
|
|
Improve this Doc
View Source
GetEnabledServers()
Declaration
public static List<ServerInfo> GetEnabledServers()
Returns
|
Improve this Doc
View Source
GetEnabledServersWithActivity(Int32)
Gets the servers, order by last activity date in descending order.
Declaration
public static List<ServerInfo> GetEnabledServersWithActivity(int lastMinutes = 10)
Parameters
Type |
Name |
Description |
System.Int32 |
lastMinutes |
The number of recent minutes activity had to occur.
|
Returns
Type |
Description |
List<ServerInfo> |
A list of servers with activity within the specified minutes.
|
|
Improve this Doc
View Source
GetExecutingServerName()
Declaration
public static string GetExecutingServerName()
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetInActiveServers(Int32)
Gets the servers, that have no activtiy in the specified time frame.
Declaration
public static List<ServerInfo> GetInActiveServers(int lastMinutes = 1440)
Parameters
Type |
Name |
Description |
System.Int32 |
lastMinutes |
The number of recent minutes activity had to occur.
|
Returns
Type |
Description |
List<ServerInfo> |
A list of servers with no activity for the specified minutes. Defaults to 24 hours.
|
|
Improve this Doc
View Source
GetServerName(ServerInfo)
Declaration
public static string GetServerName(ServerInfo webServer)
Parameters
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetServers()
Declaration
public static List<ServerInfo> GetServers()
Returns
|
Improve this Doc
View Source
GetServerWebRequestAdapter()
Declaration
public static IServerWebRequestAdapter GetServerWebRequestAdapter()
Returns
|
Improve this Doc
View Source
UpdateServer(ServerInfo)
Declaration
public static void UpdateServer(ServerInfo server)
Parameters
|
Improve this Doc
View Source
UpdateServerActivity(ServerInfo)
Declaration
public static void UpdateServerActivity(ServerInfo server)
Parameters
Extension Methods