Show / Hide Table of Contents

Class IdentitySession

Inheritance
object
Entity
Entity<Guid>
BasicAggregateRoot<Guid>
IdentitySession
Implements
IAggregateRoot<Guid>
IEntity<Guid>
IAggregateRoot
IEntity
IGeneratesDomainEvents
IHasExtraProperties
IMultiTenant
Inherited Members
BasicAggregateRoot<Guid>.GetLocalEvents()
BasicAggregateRoot<Guid>.GetDistributedEvents()
BasicAggregateRoot<Guid>.ClearLocalEvents()
BasicAggregateRoot<Guid>.ClearDistributedEvents()
BasicAggregateRoot<Guid>.AddLocalEvent(object)
BasicAggregateRoot<Guid>.AddDistributedEvent(object)
Entity<Guid>.GetKeys()
Entity<Guid>.ToString()
Entity<Guid>.Id
Entity.EntityEquals(IEntity)
object.GetType()
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Identity
Assembly: Volo.Abp.Identity.Domain.dll
Syntax
public class IdentitySession : BasicAggregateRoot<Guid>, IAggregateRoot<Guid>, IEntity<Guid>, IAggregateRoot, IEntity, IGeneratesDomainEvents, IHasExtraProperties, IMultiTenant

Constructors

IdentitySession()

Declaration
protected IdentitySession()

IdentitySession(Guid, string, string, string, Guid, Guid?, string, string, DateTime, DateTime?)

Declaration
public IdentitySession(Guid id, string sessionId, string device, string deviceInfo, Guid userId, Guid? tenantId, string clientId, string ipAddresses, DateTime signedIn, DateTime? lastAccessed = null)
Parameters
Type Name Description
Guid id
string sessionId
string device
string deviceInfo
Guid userId
Guid? tenantId
string clientId
string ipAddresses
DateTime signedIn
DateTime? lastAccessed

Properties

ClientId

Declaration
public virtual string ClientId { get; set; }
Property Value
Type Description
string

Device

Declaration
public virtual string Device { get; protected set; }
Property Value
Type Description
string

DeviceInfo

Declaration
public virtual string DeviceInfo { get; protected set; }
Property Value
Type Description
string

ExtraProperties

Declaration
public virtual ExtraPropertyDictionary ExtraProperties { get; protected set; }
Property Value
Type Description
ExtraPropertyDictionary

IpAddresses

Declaration
public virtual string IpAddresses { get; protected set; }
Property Value
Type Description
string

LastAccessed

Declaration
public virtual DateTime? LastAccessed { get; protected set; }
Property Value
Type Description
DateTime?

SessionId

Declaration
public virtual string SessionId { get; protected set; }
Property Value
Type Description
string

SignedIn

Declaration
public virtual DateTime SignedIn { get; protected set; }
Property Value
Type Description
DateTime

TenantId

Declaration
public virtual Guid? TenantId { get; protected set; }
Property Value
Type Description
Guid?

UserId

Declaration
public virtual Guid UserId { get; protected set; }
Property Value
Type Description
Guid

Methods

GetIpAddresses()

Declaration
public IEnumerable<string> GetIpAddresses()
Returns
Type Description
IEnumerable<string>

SetIpAddresses(IEnumerable<string>)

Declaration
public void SetIpAddresses(IEnumerable<string> ipAddresses)
Parameters
Type Name Description
IEnumerable<string> ipAddresses

SetSignedInTime(DateTime)

Declaration
public void SetSignedInTime(DateTime signedIn)
Parameters
Type Name Description
DateTime signedIn

UpdateLastAccessedTime(DateTime?)

Declaration
public void UpdateLastAccessedTime(DateTime? lastAccessed)
Parameters
Type Name Description
DateTime? lastAccessed

Validate(ValidationContext)

Declaration
public virtual IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
Parameters
Type Name Description
ValidationContext validationContext
Returns
Type Description
IEnumerable<ValidationResult>

Implements

IAggregateRoot<TKey>
IEntity<TKey>
IAggregateRoot
IEntity
IGeneratesDomainEvents
IHasExtraProperties
IMultiTenant

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform