Пример #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());
Пример #2
0
 public void GetPrivateKey()
 => Assert.Equal(SecretKey, SentryDsn.GetSecretKey());