Skip to content

Configuring IDbConnection in SqlServerExecutionHistoryStore #178

@AT-WH

Description

@AT-WH

In https://github.com/IoTSharp/SilkierQuartz/blob/master/src/Quartz.Plugins.RecentHistory/Impl/SqlServerExecutionHistoryStore.cs how do I configure the private readonly IDbConnection _dbConnection; field?

I configure Quartz in the following way:

services.AddSilkierQuartz(options =>
    {
      // ...
    }
    ,
    authenticationOptions =>
    {
      // ...
    }
    ,
    quartzOpts =>
    {
        // ...
        quartzOpts["quartz.plugin.recentHistory.type"] = "Quartz.Plugins.RecentHistory.ExecutionHistoryPlugin, Quartz.Plugins.RecentHistory";
        quartzOpts["quartz.plugin.recentHistory.storeType"] = "Quartz.Plugins.RecentHistory.Impl.SqlServerExecutionHistoryStore, Quartz.Plugins.RecentHistory";
        quartzOpts["quartz.serializer.type"] = "json";
    }
);

And I can't see a spot for injecting a connection string there.

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