Class Dsn
The Data Source Name of a given project in Sentry.
Inherited Members
Namespace: Sentry
Assembly: Sentry.Protocol.dll
Syntax
public class Dsn
Remarks
Constructors
| Improve this Doc View SourceDsn(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 SourcePath
An optional path of which Sentry is hosted
Declaration
public string Path { get; }
Property Value
Type | Description |
---|---|
String |
ProjectId
The project ID which the authenticated user is bound to.
Declaration
public string ProjectId { get; }
Property Value
Type | Description |
---|---|
String |
PublicKey
The required public key to authenticate the SDK.
Declaration
public string PublicKey { get; }
Property Value
Type | Description |
---|---|
String |
SecretKey
The optional secret key to authenticate the SDK.
Declaration
public string SecretKey { get; }
Property Value
Type | Description |
---|---|
String |
SentryUri
The URI used to communicate with Sentry
Declaration
public Uri SentryUri { get; }
Property Value
Type | Description |
---|---|
Uri |
Methods
| Improve this Doc View SourceIsDisabled(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 |
|
ToString()
The original DSN string used to create this instance
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
| Improve this Doc View SourceTryParse(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 |
|