namespace Unosquare.Swan.Abstractions
{
using System;
///
/// Represents event arguments whenever the state of an application service changes.
///
public class AppWorkerStateChangedEventArgs : EventArgs
{
///
/// Initializes a new instance of the class.
///
/// The old state.
/// The new state.
public AppWorkerStateChangedEventArgs(AppWorkerState oldState, AppWorkerState newState)
{
OldState = oldState;
NewState = newState;
}
///
/// Gets the state to which the application service changed.
///
///
/// The new state.
///
public AppWorkerState NewState { get; }
///
/// Gets the old state.
///
///
/// The old state.
///
public AppWorkerState OldState { get; }
}
}