Class ServerState
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Holds information about the state of a server
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Events.Clients.Internal
Assembly: EPiServer.Events.dll
Version: 11.20.7Syntax
public class ServerState : IEquatable<ServerState>
Constructors
ServerState(String, String)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the ServerState class with the current time set as the first and last contact.
Declaration
public ServerState(string serverName, string applicationName)
Parameters
Type | Name | Description |
---|---|---|
System.String | serverName | Name of the server. |
System.String | applicationName | Name of the application. |
ServerState(String, String, DateTime, DateTime, Boolean)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the ServerState class.
Declaration
public ServerState(string serverName, string applicationName, DateTime firstContact, DateTime lastContact, bool active)
Parameters
Type | Name | Description |
---|---|---|
System.String | serverName | Name of the server. |
System.String | applicationName | Name of the application. |
System.DateTime | firstContact | The time of the first contact. |
System.DateTime | lastContact | The time of the last contact. |
System.Boolean | active | A value indicating if the server is currently active. |
Fields
ServerAndApplicationNameComparer
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets an equality comparer instance that only compare the server name of ServerState objects.
Declaration
public static readonly IEqualityComparer<ServerState> ServerAndApplicationNameComparer
Field Value
Type | Description |
---|---|
System.Collections.Generic.IEqualityComparer<ServerState> |
ServerNameComparer
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets an equality comparer instance that only compare the server name of ServerState objects.
Declaration
public static readonly IEqualityComparer<ServerState> ServerNameComparer
Field Value
Type | Description |
---|---|
System.Collections.Generic.IEqualityComparer<ServerState> |
Properties
Active
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets a value indicating whether this server is active.
Declaration
public bool Active { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
ApplicationName
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets the name of the IIS application that this state represents.
Declaration
public string ApplicationName { get; }
Property Value
Type | Description |
---|---|
System.String |
FirstContact
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets the time of the first contact between this server and the current one.
Declaration
public DateTime FirstContact { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
LastContact
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets the time of the last contact between this server and the current one.
Declaration
public DateTime LastContact { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
ServerName
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets the name of the server that this state represents.
Declaration
public string ServerName { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Equals(ServerState)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Indicates whether the current ServerState instance is equal to another ServerState instance.
Declaration
public bool Equals(ServerState other)
Parameters
Type | Name | Description |
---|---|---|
ServerState | other | A ServerState instance to compare with this instance. |
Returns
Type | Description |
---|---|
System.Boolean | true if the current object is equal to the |
Equals(Object)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Determines whether the specified System.Object is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with this instance. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
GetHashCode()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
Matches(String, String)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Checks if the current instance matches the specified server and application name.
Declaration
public bool Matches(string serverName, string applicationName)
Parameters
Type | Name | Description |
---|---|---|
System.String | serverName | Name of the server to match against. |
System.String | applicationName | Name of the application to match against. |
Returns
Type | Description |
---|---|
System.Boolean | True if the current instance matches the provided names; otherwise false. |
ToString()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |