using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using StateHasChanged2.Shared;
using StateHasChanged2.Utils;

namespace StateHasChanged2.Client
{
    using Microsoft.AspNetCore.Components;
    public class SharedService
    {
        #region Proprietà
        #endregion

        #region Eventi
        /// <summary>
        /// Evento di progress
        /// </summary>
        public event Utils.Utils.EventHandler OnProgress;
        #endregion

        #region Metodi pubblici
        /// <summary>
        /// Invoca l'evento OnProgress
        /// </summary>
        /// <param name="sender">Oggetto mittente</param>
        /// <param name="e">Informazioni di progress</param>
        public void InvokeOnProgressEvent(object sender)
        {
            if (OnProgress != null)
                OnProgress.Invoke(sender);
        }
        #endregion
    }
}
