/************************************************************************************************************
* file    : AuthUserAbstract.cs
* author  : cbg
* function: 
* history :  2022-02-22
************************************************************************************************************/
using RG3.PF.Abstractions.Entity;
using RG3.PF.Abstractions.Enums;
using System;
using System.Threading.Tasks;

namespace RG3.PF.Auth.Abstractions
{
    /// <summary>
    /// 
    /// </summary>
    public abstract class AuthMenuAbstract
    {
        /// <summary>
        /// 推送
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="pf"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        public virtual async Task<T> Push<T>(PFGlobalParameter pf, T value)
        {
            //Task<T> task = new Task<T>(() =>
            //{
            //    return default(T);
            //});
            //task.Start();
            ////task.Wait(1000);
            //return task;
            T result = default(T);
            return result;
        }

        /// <summary>
        /// 拉取
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="pf"></param>
        /// <returns></returns>
        public virtual async Task<T> Pull<T>(PFGlobalParameter pf, T value)
        {
            //Task<T> task = new Task<T>(() =>
            //{
            //    return default(T);
            //});
            //task.Start();
            ////task.Wait(1000);
            //return task;
            T result = default(T);
            return result;
        }

        /// <summary>
        /// 删除
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="pf"></param>
        /// <returns></returns>
        public virtual async Task<T> Delete<T>(PFGlobalParameter pf, T value)
        {
            //Task<T> task = new Task<T>(() =>
            //{
            //    return default(T);
            //});
            //task.Start();
            ////task.Wait(1000);
            //return task;
            T result = default(T);
            return result;
        }
    }
}
文档更新时间: 2022-03-02 09:47   作者:admin