Example #1
0
 public AuditTrailHubMiddleware(RequestDelegate next, IOptions <AuditTrailHubOptions> options, IAuditTrailHubService auditTrailService)
 {
     _next              = next;
     _options           = options.Value;
     _auditTrailService = auditTrailService;
 }
 public AuditTrailHubService(IAuditTrailSink sink, IOptions <AuditTrailHubOptions> options)
 {
     _sink    = sink ?? throw new ArgumentNullException(nameof(sink));
     _options = options.Value;
 }