/// <summary> /// Initializes a new instance of the <see cref="EntityFrameworkCoreDiagnosticListener"/> class. /// </summary> /// <param name="agent">The Loupe agent.</param> /// <param name="configuration">Optional. The framework for the listener</param> public EntityFrameworkCoreDiagnosticListener(LoupeAgent agent, EntityFrameworkConfiguration configuration = null) { _configuration = configuration ?? new EntityFrameworkConfiguration(); }
/// <summary> /// Initializes a new instance of the <see cref="EntityFrameworkCoreDiagnosticListener"/> class. /// </summary> /// <param name="configuration">Optional. The framework for the listener</param> public EntityFrameworkCoreDiagnosticListener(EntityFrameworkConfiguration configuration = null) { _configuration = configuration ?? new EntityFrameworkConfiguration(); LogCallStack = _configuration.LogCallStack; LogExceptions = _configuration.LogExceptions; }