/// <summary>
 /// creates the <see cref="EFScheduledTaskStore{TState}"/>
 /// </summary>
 /// <param name="dbContext"></param>
 /// <param name="workerJsonOptions"></param>
 public EFScheduledTaskStore(TaskDbContext dbContext, WorkerJsonOptions workerJsonOptions)
 {
     _dbContext             = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
     _jsonSerializerOptions = workerJsonOptions?.JsonSerializerOptions ?? throw new ArgumentNullException(nameof(workerJsonOptions));
 }
Esempio n. 2
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="dbContext"></param>
 /// <param name="queueNameResolver"></param>
 /// <param name="workerJsonOptions"></param>
 public EFMessageQueue(TaskDbContext dbContext, IQueueNameResolver <T> queueNameResolver, WorkerJsonOptions workerJsonOptions)
 {
     _dbContext             = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
     _queueName             = queueNameResolver?.Resolve() ?? throw new ArgumentNullException(nameof(queueNameResolver));
     _jsonSerializerOptions = workerJsonOptions?.JsonSerializerOptions ?? throw new ArgumentNullException(nameof(workerJsonOptions));
 }