Esempio n. 1
0
 public static SentryAuth Issue(Dsn dsn, DateTimeOffset issuedAt)
 => new SentryAuth(
     sentryVersion: Sentry.CurrentProtocolVersion,
     clientVersion: string.Join("/",
                                $"{SentryClient.Name}-csharp",
                                SentryClient.Version),
     timestamp: DateTimeOffset.UtcNow.ToUnixTimeSeconds(),
     publicKey: dsn.GetPublicKey(),
     secretKey: dsn.GetSecretKey());
Esempio n. 2
0
 public void GetPublicKey()
 => Assert.Equal(PublicKey, SentryDsn.GetPublicKey());