November Happy Hour will be moved to Thursday December 5th.

Class StateMessage

Message that is sent by the ServerStateService to propagate status information.

Inheritance
System.Object
StateMessage
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Events.Clients
Assembly: EPiServer.Events.dll
Version: 9.12.2
Syntax
[EventsServiceKnownType]
public class StateMessage

Constructors

StateMessage(String, String, StateMessageType)

Initializes a new instance of the StateMessage class.

Declaration
public StateMessage(string serverName, string applicationName, StateMessageType type)
Parameters
Type Name Description
System.String serverName

Name of the server.

System.String applicationName

Name of the application.

StateMessageType type

The message type.

StateMessage(String, String, StateMessageType, DateTime)

Initializes a new instance of the StateMessage class.

Declaration
public StateMessage(string serverName, string applicationName, StateMessageType type, DateTime sent)
Parameters
Type Name Description
System.String serverName

Name of the server.

System.String applicationName

Name of the application.

StateMessageType type

The message type.

System.DateTime sent

The time when the message was sent.

Properties

ApplicationName

Gets the name of the application (AppDomain) that this message origins from.

Declaration
public string ApplicationName { get; }
Property Value
Type Description
System.String

Sent

Gets the date when this message was sent.

Declaration
public DateTime Sent { get; }
Property Value
Type Description
System.DateTime

ServerName

Gets the name of the server that this message origins from.

Declaration
public string ServerName { get; }
Property Value
Type Description
System.String

Type

Gets the type of message that was sent.

Declaration
public StateMessageType Type { get; }
Property Value
Type Description
StateMessageType

Methods

ToString()

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.

Overrides
System.Object.ToString()

Extension Methods