Search Results for

    Show / Hide Table of Contents

    Class OAuthTokenService

    Inheritance
    System.Object
    OAuthTokenService
    Implements
    IOAuthTokenService
    IOAuthTokenRepository
    IRepositoryBase<System.Guid, OAuthToken>
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Simplic.Framework.Mailing
    Assembly: Simplic.Framework.dll
    Syntax
    public class OAuthTokenService : IOAuthTokenService, IOAuthTokenRepository

    Constructors

    | Improve this Doc View Source

    OAuthTokenService(IOAuthTokenRepository)

    Creates a new OAuth token service

    Declaration
    public OAuthTokenService(IOAuthTokenRepository repository)
    Parameters
    Type Name Description
    IOAuthTokenRepository repository

    Methods

    | Improve this Doc View Source

    Delete(OAuthToken)

    Declaration
    public bool Delete(OAuthToken obj)
    Parameters
    Type Name Description
    OAuthToken obj
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Delete(Guid)

    Declaration
    public bool Delete(Guid id)
    Parameters
    Type Name Description
    System.Guid id
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Get(Guid)

    Declaration
    public OAuthToken Get(Guid id)
    Parameters
    Type Name Description
    System.Guid id
    Returns
    Type Description
    OAuthToken
    | Improve this Doc View Source

    GetAll()

    Declaration
    public IEnumerable<OAuthToken> GetAll()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<OAuthToken>
    | Improve this Doc View Source

    GetByUserAndTenantId(Int32, Guid)

    Gets the token by the user ID and tenant ID

    Declaration
    public OAuthToken GetByUserAndTenantId(int userId, Guid tenantId)
    Parameters
    Type Name Description
    System.Int32 userId
    System.Guid tenantId
    Returns
    Type Description
    OAuthToken

    the token

    | Improve this Doc View Source

    GetIdByUserAndTenantId(Int32, Guid)

    Gets the id of the token by the user ID and tenant ID

    Declaration
    public Guid GetIdByUserAndTenantId(int userId, Guid tenantId)
    Parameters
    Type Name Description
    System.Int32 userId
    System.Guid tenantId
    Returns
    Type Description
    System.Guid

    the token

    | Improve this Doc View Source

    Save(OAuthToken)

    Declaration
    public bool Save(OAuthToken obj)
    Parameters
    Type Name Description
    OAuthToken obj
    Returns
    Type Description
    System.Boolean

    Implements

    IOAuthTokenService
    IOAuthTokenRepository
    IRepositoryBase<, >
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx