Class ServerStateService
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Service that sends and collect state information to and from the other servers using the Event system.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Events.Clients.Internal
Assembly: EPiServer.Events.dll
Version: 11.20.7Syntax
[ServiceConfiguration(typeof(ServerStateService), Lifecycle = ServiceInstanceScope.Singleton)]
public class ServerStateService : IDisposable
Constructors
ServerStateService(IEventRegistry, IEventBroker, IEventHostingEnvironment, ServiceAccessor<ITimer>)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the Server
Declaration
public ServerStateService(IEventRegistry eventService, IEventBroker eventBroker, IEventHostingEnvironment hostingEnvironment, ServiceAccessor<ITimer> timerFactory)
Parameters
Type | Name | Description |
---|---|---|
IEvent |
eventService | The IEvent |
IEvent |
eventBroker | The IEvent |
IEvent |
hostingEnvironment | The current hosting environment used by this instance. |
Service |
timerFactory | A factory that creates the timer that should be used by the service. |
Exceptions
Type | Condition |
---|---|
System. |
eventService or eventBroker |
Properties
LocalState
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Represents the state of the local server
Declaration
public virtual ServerState LocalState { get; }
Property Value
Type | Description |
---|---|
Server |
Methods
CurrentServerState()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets an enumerable of the current server state as known by this Server
Declaration
public virtual IEnumerable<ServerState> CurrentServerState()
Returns
Type | Description |
---|---|
System. |
An enumerable of Server |
Dispose()
Declaration
public void Dispose()
Initialize()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes this Server
Declaration
public void Initialize()
RequestState()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Sends a state request to all currently participating servers.
Declaration
public virtual void RequestState()
Uninitialize()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Uninitializes this Server
Declaration
public void Uninitialize()
Events
StateMessageReceived
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Occurs when a state message is received.
Declaration
public event EventHandler<StateMessageEventArgs> StateMessageReceived
Event Type
Type | Description |
---|---|
System. |