Пример #1
0
 public static IEnumerable <string> GetValues(SentryAuth auth)
 => new[]
 {
     Combine("Sentry sentry_version", auth.SentryVersion),
     Combine("sentry_timestamp", auth.Timestamp),
     Combine("sentry_key", auth.PublicKey),
     Combine("sentry_secret", auth.SecretKey),
     Combine("sentry_client", auth.ClientVersion)
 };
        public static IEnumerable <string> GetValues(SentryAuth auth)
        {
            yield return(Combine("Sentry sentry_version", auth.SentryVersion));

            yield return(Combine("sentry_timestamp", auth.Timestamp));

            yield return(Combine("sentry_key", auth.PublicKey));

            if (auth.SecretKey != null)
            {
                yield return(Combine("sentry_secret", auth.SecretKey));
            }

            yield return(Combine("sentry_client", auth.ClientVersion));
        }
Пример #3
0
 private void AddSentryAuthHeader(HttpRequestMessage message)
 => message.Headers.Add(SentryAuthHeader.Name,
                        SentryAuthHeader.GetValues(
                            SentryAuth.Issue(this, DateTimeOffset.Now)));
 private IEnumerable <string> GetSentryAuthHeader()
 => SentryAuthHeader.GetValues(
     SentryAuth.Issue(Dsn, DateTimeOffset.Now));