NullVzSession.cs 626 B

12345678910111213141516171819202122232425262728
  1. using Abp.MultiTenancy;
  2. namespace VberZero.Session;
  3. public class NullVzSession : IVzSession
  4. {
  5. public NullVzSession()
  6. {
  7. }
  8. public static NullVzSession Instance { get; } = new NullVzSession();
  9. public string GetClaimValueStr(string claimType)
  10. {
  11. return "";
  12. }
  13. public IDisposable Use(int? tenantId, long? userId)
  14. {
  15. throw new NotImplementedException();
  16. }
  17. public long? UserId { get; }
  18. public int? TenantId { get; }
  19. public MultiTenancySides MultiTenancySide { get; }
  20. public long? ImpersonatorUserId { get; }
  21. public int? ImpersonatorTenantId { get; }
  22. }