0

ここで、NServiceBusスケジューラでいくつかの作業が計画されていることがわかります。

では、実行時にスケジュールを変更するための現在の良いアプローチは何ですか?

4

1 に答える 1

0

流暢な構成でそれを行った方法は次のとおりです。

public static class ConfigureTaskStorage
{
    public static Configure UseConfigFileStorageForTaskSchedule(this Configure config)
    {
        if (null == config)
            throw new ArgumentNullException("config");

        config.Configurer.ConfigureComponent<ITaskScheduleStorage>(()=> new ConfigStorage(),DependencyLifecycle.SingleInstance);
        return config;
    }
}
于 2013-01-25T21:09:00.780 に答える