/// <summary>Initializes a new instance of the /// Diligent.Poced.Logging.Web.TrackApiUsageAttribute class.</summary> /// /// <exception cref="ArgumentNullException">Thrown when one or more required arguments are null.</exception> /// /// <param name="options"> Options for controlling the operation.</param> /// <param name="logger"> The logger.</param> /// <param name="name"> The name.</param> public TrackApiUsageAttribute(IOptions <PocedLoggingSettings> options, IPocedWebLogger logger, string name) { this.name = name; this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); settings = options?.Value ?? throw new ArgumentNullException(nameof(options)); }
/// <summary>Initializes a new instance of the Diligent.Poced.Logging.Web.ApiLoggerAttribute /// class.</summary> /// /// <exception cref="ArgumentNullException">Thrown when one or more required arguments are null.</exception> /// /// <param name="options"> Options for controlling the operation.</param> /// <param name="logger"> The logger.</param> public ApiLoggerAttribute(IOptions <PocedLoggingSettings> options, IPocedWebLogger logger) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); settings = options?.Value ?? throw new ArgumentNullException(nameof(options)); }