Skip to content
This repository was archived by the owner on Jun 18, 2022. It is now read-only.
This repository was archived by the owner on Jun 18, 2022. It is now read-only.

How to use custom ISqlHooks? #17

@brendonparker

Description

@brendonparker

I seems like the idea with AddDbConnectionFactoryWithHooks is that you could use the IoC container to register your own ISqlHooks, but then it doesn't look like that is ever used.

For example, both the ContextlessLoggingFactory and ContextfulLoggingFactory call CreateConnection specifying the hooks which are manually instantiated in their respective classes...

_hooks = new LoggingHook<T>(logger, config);

Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions