using Autofac;
using GreenTree.Nachtragsmanagement.Core.Domain.User;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GreenTree.Nachtragsmanagement.Core.Authentication
{
    public class UserContext
    {
        public User CurrentUser
        {
            get
            {
                var container = Singleton<IContainer>.Instance;
                var userHelper = container.Resolve<IUserHelper>();

                return userHelper.FromCookiesOrSession();
            }
        }
    }
}
