using System;
namespace Unosquare.Swan.Abstractions {
///
/// 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) {
this.OldState = oldState;
this.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;
}
}
}