public static FluentSyntax.DiagnosticEventBuilder AsWarning(this ILogger logger)
        {
            var builder = new FluentSyntax.DiagnosticEventBuilder(logger);

            builder.EventToBuild.Severity = SeverityLevels.Warning;

            return builder;
        }
        public static FluentSyntax.DiagnosticEventBuilder AsInformation(this ILogger logger)
        {
            var builder = new FluentSyntax.DiagnosticEventBuilder(logger);

            builder.EventToBuild.Severity = SeverityLevels.Information;

            return builder;
        }
Ejemplo n.º 3
0
 public SecurityEvent(DiagnosticEventBuilder builder)
 {
     this.Builder = builder;
 }
 public ApplicationLifecycleEvent(DiagnosticEventBuilder builder)
 {
     this.Builder = builder;
 }