From e3172b4ea8b872048e17224cdb9cdc44d6dde46d Mon Sep 17 00:00:00 2001 From: Tom Raterman Date: Tue, 30 Mar 2021 21:08:25 -0400 Subject: [PATCH] Nuget updates --- .../PartSource.Automation.csproj | 3 ++- PartSource.Automation/Program.cs | 7 ++++--- nuget.config | 21 +++++++++++++++++++ 3 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 nuget.config diff --git a/PartSource.Automation/PartSource.Automation.csproj b/PartSource.Automation/PartSource.Automation.csproj index 4945950..fb6b61b 100644 --- a/PartSource.Automation/PartSource.Automation.csproj +++ b/PartSource.Automation/PartSource.Automation.csproj @@ -18,7 +18,8 @@ - + + diff --git a/PartSource.Automation/Program.cs b/PartSource.Automation/Program.cs index bb122ae..0829c18 100644 --- a/PartSource.Automation/Program.cs +++ b/PartSource.Automation/Program.cs @@ -70,6 +70,7 @@ namespace PartSource.Automation { options.HasBaseInterval(new TimeSpan(0, 1, 0)) .HasMaxFailures(5) + .HasJob(options => options.HasInterval(5)) //.HasJob(options => options.HasInterval(new TimeSpan(24, 0, 0)) // .HasJob(options => options.HasInterval(new TimeSpan(24, 0, 0)) //.HasJob(options => options.HasInterval(new TimeSpan(24, 0, 0)) @@ -77,12 +78,12 @@ namespace PartSource.Automation // .StartsAt(DateTime.Today.AddHours(8)) //) - .HasJob(options => options.HasInterval(new TimeSpan(24, 0, 0)) + //.HasJob(options => options.HasInterval(new TimeSpan(24, 0, 0)) // .HasJob(options => options.HasInterval(new TimeSpan(24, 0, 0))) //.HasDependency() //.StartsAt(DateTime.Now.AddMinutes(15)) - ) - .AddApiServer(options => options.HasApiKey(Environment.GetEnvironmentVariable("AUTOMATION_API_KEY"))); + //) + .AddApiServer(); }) .AddSingleton() diff --git a/nuget.config b/nuget.config new file mode 100644 index 0000000..75be74a --- /dev/null +++ b/nuget.config @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file