public Task PublishAsync(HealthReport report, CancellationToken cancellationToken)
        {
            var message = JsonConvert.SerializeObject(report, new JsonSerializerSettings
            {
                Formatting            = Formatting.Indented,
                ReferenceLoopHandling = ReferenceLoopHandling.Ignore
            });

            return(_options.PublishAsync(_serviceProvider, message));
        }
Exemple #2
0
        public Task PublishAsync(HealthReport report, CancellationToken cancellationToken)
        {
            var message = JsonSerializer.Serialize(report, _jsonOptions.JsonSerializerOptions);

            return(_options.PublishAsync(_serviceProvider, message));
        }