/// <summary> /// Method to fire the status change event /// </summary> /// <param name="sender"></param> /// <param name="data"></param> protected void OnStatusChange(object sender, StatusChangeEventArgs data) { //Check if event has been subscribed to if (StatusChange != null) { //call the event StatusChange(this, data); } }
/// <summary> /// Plex status change event handler, forward any status changes to the clients /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnPlexEvent(object sender, StatusChangeEventArgs e) { WriteToLog(e.Description); }
/// <summary> /// Method to fire the status change event /// </summary> /// <param name="sender"></param> /// <param name="data"></param> protected void OnPlexStatusChange(object sender, StatusChangeEventArgs data) { var handler = PlexStatusChange; //Check if event has been subscribed to if (handler != null) { //call the event handler(this, data); } }