Skip to content

Commit

Permalink
next try
Browse files Browse the repository at this point in the history
  • Loading branch information
romankr committed Dec 2, 2023
1 parent 8b0f24a commit 8827b8c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 54 deletions.
45 changes: 0 additions & 45 deletions OddsCollector.Functions/Functions/PredictionsHttpFunction.cs

This file was deleted.

9 changes: 0 additions & 9 deletions OddsCollector.Functions/Program.cs
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
using Microsoft.Azure.Functions.Worker;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using OddsCollector.Functions.CosmosDb;
using OddsCollector.Functions.OddsApi.Configuration;
using OddsCollector.Functions.Strategies;

var host = new HostBuilder()
.ConfigureFunctionsWorkerDefaults()
.ConfigureServices(services =>
{
services.AddSingleton(
ContainerFactory.CreateContainer(
// workaround for https://github.com/MicrosoftDocs/azure-docs/issues/32962
Environment.GetEnvironmentVariable("CosmosDb:Connection"),
Environment.GetEnvironmentVariable("CosmosDb:Database"),
Environment.GetEnvironmentVariable("CosmosDb:EventPredictionsContainer")
));
services.AddSingleton<ICosmosDbClient, CosmosDbClient>();
services.AddSingleton<IPredictionStrategy, AdjustedConsensusStrategy>();
services.AddOddsApiClientWithDependencies();
services.AddApplicationInsightsTelemetryWorkerService();
Expand Down

0 comments on commit 8827b8c

Please sign in to comment.