Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IAuditLoggingBuilder Extension Methods Explained/Examples Please #11

Open
aarondglover opened this issue Jan 13, 2021 · 0 comments
Open

Comments

@aarondglover
Copy link

Hi @skoruba

Are you able to provide some additional explanation with regard to the following Extension Methods of the IAuditLoggingBuilder. Many of the Methods are self explanatory

I'm happy to contribute to the project in any way I can.

AddDefaultEventAction(this IAuditLoggingBuilder builder);

Not Sure what this does - omitting this from the builder event seemingly had no effect. Nor did setting UseDefaultAction to false as per below. The "Action" property of the AuditEvent was always populated with the same data.

  services.AddAuditLogging(
                options =>
                {
                    options.UseDefaultSubject = false;
                    options.UseDefaultAction = false;
                })
AddDefaultEventData(this IAuditLoggingBuilder builder);

No discernible difference when added or omitted

AddDefaultEventSubject(this IAuditLoggingBuilder builder);

No discernible difference when added or omitted. Also setting options.UseDefaultSubject = false; has not effect.

AddEventData<TEventSubject, TEventAction>(this IAuditLoggingBuilder builder)
            where TEventSubject : class, IAuditSubject
            where TEventAction : class, IAuditAction;

No Idea

FYI This project looks perfect for my requirements. I've been able to deploy a custom sink which publishes to a MessageQueue (RabbitMQ) and then in another Microservice I subscribe to the message queue and persist them to a SQL Database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant