Show / Hide Table of Contents

    Class Dsn

    The Data Source Name of a given project in Sentry.

    Inheritance
    Object
    Dsn
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Namespace: Sentry
    Assembly: Sentry.Protocol.dll
    Syntax
    public class Dsn
    Remarks

    https://docs.sentry.io/quickstart/#configure-the-dsn

    Constructors

    | Improve this Doc View Source

    Dsn(String)

    Initializes a new instance of the Dsn class.

    Declaration
    public Dsn(string dsn)
    Parameters
    Type Name Description
    String dsn

    The DSN in the format: {PROTOCOL}://{PUBLIC_KEY}@{HOST}/{PATH}{PROJECT_ID}

    Remarks

    A legacy DSN containing a secret will also be accepted: {PROTOCOL}://{PUBLIC_KEY}:{SECRET_KEY}@{HOST}/{PATH}{PROJECT_ID}

    Properties

    | Improve this Doc View Source

    Path

    An optional path of which Sentry is hosted

    Declaration
    public string Path { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    ProjectId

    The project ID which the authenticated user is bound to.

    Declaration
    public string ProjectId { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    PublicKey

    The required public key to authenticate the SDK.

    Declaration
    public string PublicKey { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    SecretKey

    The optional secret key to authenticate the SDK.

    Declaration
    public string SecretKey { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    SentryUri

    The URI used to communicate with Sentry

    Declaration
    public Uri SentryUri { get; }
    Property Value
    Type Description
    Uri

    Methods

    | Improve this Doc View Source

    IsDisabled(String)

    Determines whether the specified DSN means a disabled SDK or not..

    Declaration
    public static bool IsDisabled(string dsn)
    Parameters
    Type Name Description
    String dsn

    The DSN.

    Returns
    Type Description
    Boolean

    true if the string represents a disabled DSN; otherwise, false.

    | Improve this Doc View Source

    ToString()

    The original DSN string used to create this instance

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()
    | Improve this Doc View Source

    TryParse(String, out Dsn)

    Tries to parse the string into a Dsn

    Declaration
    public static bool TryParse(string dsn, out Dsn finalDsn)
    Parameters
    Type Name Description
    String dsn

    The string to attempt parsing.

    Dsn finalDsn

    The Dsn when successfully parsed.

    Returns
    Type Description
    Boolean

    true if the string is a valid Dsn as was successfully parsed. Otherwise, false.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX