Class NOPSession
Represents a session that does nothing and returns fake user
Inheritance
System.Object
NOPSession
Implements
System.Security.Principal.IPrincipal
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Azos.dll
Syntax
public sealed class NOPSession : ISession, IPrincipal
Properties
ID
Declaration
Property Value
| Type |
Description |
| System.Guid |
|
Instance
Returns a singleton instance of the NOPSession
Declaration
public static NOPSession Instance { get; }
Property Value
IsEnded
Declaration
public bool IsEnded { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
IsJustLoggedIn
Declaration
public bool IsJustLoggedIn { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
IsNew
Declaration
public bool IsNew { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Item[Object]
Declaration
public object this[object key] { get; set; }
Parameters
| Type |
Name |
Description |
| System.Object |
key |
|
Property Value
| Type |
Description |
| System.Object |
|
Items
Declaration
public IDictionary<object, object> Items { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.IDictionary<System.Object, System.Object> |
|
LanguageISOCode
Declaration
public string LanguageISOCode { get; }
Property Value
| Type |
Description |
| System.String |
|
LastLoginType
Declaration
public SessionLoginType LastLoginType { get; }
Property Value
LastLoginUTC
Declaration
public DateTime? LastLoginUTC { get; }
Property Value
| Type |
Description |
| System.Nullable<System.DateTime> |
|
OldID
Declaration
public Guid? OldID { get; }
Property Value
| Type |
Description |
| System.Nullable<System.Guid> |
|
User
Declaration
public User User { get; set; }
Property Value
Methods
Acquire()
Declaration
End()
Declaration
HasJustLoggedIn(SessionLoginType, DateTime)
Declaration
public void HasJustLoggedIn(SessionLoginType loginType, DateTime utcNow)
Parameters
RegenerateID()
Declaration
public void RegenerateID()
Release()
Declaration
Explicit Interface Implementations
IPrincipal.Identity
Declaration
IIdentity IPrincipal.Identity { get; }
Returns
| Type |
Description |
| System.Security.Principal.IIdentity |
|
IPrincipal.IsInRole(String)
Declaration
bool IPrincipal.IsInRole(string role)
Parameters
| Type |
Name |
Description |
| System.String |
role |
|
Returns
| Type |
Description |
| System.Boolean |
|
Implements
System.Security.Principal.IPrincipal
Extension Methods