Unosquare
    Show / Hide Table of Contents

    Interface ISessionProxy

    Represents a session proxy, i.e. an object that provides the same interface as a session object, plus a basic interface to a session manager.

    Inherited Members
    ISession.Id
    ISession.Duration
    ISession.LastActivity
    ISession.Count
    ISession.IsEmpty
    ISession.Item[String]
    ISession.Clear()
    ISession.ContainsKey(String)
    ISession.TryGetValue(String, Object)
    ISession.TryRemove(String, Object)
    ISession.TakeSnapshot()
    Namespace: EmbedIO.Sessions
    Syntax
    public interface ISessionProxy : ISession
    Remarks

    A session proxy can be used just as if it were a session object. A session is automatically created wherever its data are accessed.

    Properties

    Exists

    Gets a value indicating whether a session exists for the current context.

    Declaration
    bool Exists { get; }
    Property Value
    Type Description
    Boolean

    true if a session exists; otherwise, false.

    Methods

    Delete()

    Deletes the session for the current context.

    Declaration
    void Delete()

    Regenerate()

    Deletes the session for the current context and creates a new one.

    Declaration
    void Regenerate()

    See Also

    ISession

    Comments

    Back to top Copyright © 2017-2019 Unosquare