Skip to content

Provide hooks for data refresh and data changed #28

@colinangusmackay

Description

@colinangusmackay

Provide hooks for Data Refresh and Data Changed.

e.g.

builder.AddSqlServer(opts =>
{
    opts.FromExistingConfiguration()
        .ExpectLogger()
        .AddOnRefreshedHook( (config, logger) =>
        {
            // Do stuff when refreshed (not necessarily changed).
            logger.LogInformation("The configuration data has been refreshed.");
        }
        .AddOnChangedHook( (config, logger) =>
        {
            // Do stuff when changed.
            logger.LogInformation("The configuration data has changed.");
        }
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions