Exemplo n.º 1
0
 static bool IgnoreOrInclude(DiagnosticScopeSettings settings, DiagnosticScopeSettings flag)
 {
     return(HasFlag(settings, flag) &&
            !HasFlag(settings, DiagnosticScopeSettings.Ignore));
 }
Exemplo n.º 2
0
 protected DiagnosticScope(IConfiguration configuration, DiagnosticScopeSettings settings)
 {
     this.configuration = configuration;
     this.settings      = settings;
 }
Exemplo n.º 3
0
 static bool HasFlag(DiagnosticScopeSettings settings, DiagnosticScopeSettings flag)
 {
     return((settings & flag) == flag);
 }
Exemplo n.º 4
0
 IDiagnosticScope IDiagnosticScopeFactory.Create(Type type, DiagnosticScopeSettings settings)
 {
     return(new TypeDiagnosticScope(type, configuration, settings));
 }
Exemplo n.º 5
0
 internal TypeDiagnosticScope(Type type, IConfiguration configuration, DiagnosticScopeSettings settings)
     : base(configuration, settings)
 {
     this.type = type;
 }
Exemplo n.º 6
0
 IDiagnosticScope IDiagnosticScopeFactory.Create(Assembly assembly, DiagnosticScopeSettings settings)
 {
     return(new AssemblyDiagnosticScope(assembly, configuration, settings));
 }
Exemplo n.º 7
0
 internal AssemblyDiagnosticScope(Assembly assembly, IConfiguration configuration, DiagnosticScopeSettings settings)
     : base(configuration, settings)
 {
     this.assembly = assembly;
 }
Exemplo n.º 8
0
 public DiagnosticScopeAttribute(DiagnosticScopeSettings settings)
 {
     this.Settings = settings;
 }