Search Results for

    Show / Hide Table of Contents

    Class TicketStore

    A ticket store keeps track of authentication tickets

    Inheritance
    System.Object
    TicketStore
    Namespace: ImageVault.Common.Security
    Assembly: ImageVault.Common.dll
    Syntax
    public class TicketStore : Object

    Constructors

    TicketStore()

    Declaration
    public TicketStore()

    Methods

    AddTicket(TicketEntry)

    Adds a new ticket that don't have a session token assigned

    Declaration
    public string AddTicket(TicketEntry entry)
    Parameters
    Type Name Description
    TicketEntry entry
    Returns
    Type Description
    System.String

    AddTicket(String, TicketEntry)

    Adds a sessionToken/ticket pair

    Declaration
    public void AddTicket(string sessionToken, TicketEntry ticketEntry)
    Parameters
    Type Name Description
    System.String sessionToken
    TicketEntry ticketEntry

    GetAllTickets()

    Returns a list of the current entries in the store

    Declaration
    public List<KeyValuePair<string, TicketEntry>> GetAllTickets()
    Returns
    Type Description
    System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<System.String, TicketEntry>>

    GetTicket(String)

    Gets a ticket entry by it's session token

    Declaration
    public TicketEntry GetTicket(string sessionToken)
    Parameters
    Type Name Description
    System.String sessionToken
    Returns
    Type Description
    TicketEntry

    RemoveTicket(String)

    Removes a ticket with the supplied sessionToken

    Declaration
    public bool RemoveTicket(string sessionToken)
    Parameters
    Type Name Description
    System.String sessionToken
    Returns
    Type Description
    System.Boolean

    true if the session token was found and the authentication ticket was removed. False if the sessionToken was not present.

    Extension Methods

    EnumExtensions.GetNames<TEnum>(TEnum)
    In This Article
    Back to top (c) Meriworks 2002-2022