ISessionContextProvider.cs 731 B

123456789101112131415161718192021
  1. using Microsoft.AspNetCore.Http;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace XF.Domain.Authentications
  8. {
  9. public interface ISessionContextProvider
  10. {
  11. //public ISessionContext SessionContext { get; set; }
  12. //public void SetContext(string key);
  13. HttpContext ChangeSessionByUserId(string id, HttpContext httpContext);
  14. Task ChangeSessionByUserIdAsync(string userId, CancellationToken cancellation);
  15. void ChangeSession(string userId, string username, string orgId, string orgname, int orgLevel, string orgAreaCode, string orgAreaName);
  16. void ChangeSession(ISessionContext sessionContext);
  17. }
  18. }