Skip to content

Commit

Permalink
Merge pull request #483 from pkuehnel/hotfix/DateProviderSolarEdge
Browse files Browse the repository at this point in the history
fix(SolarEdgePlugin): Add DatetimeProvider to DI
  • Loading branch information
pkuehnel authored Dec 29, 2022
2 parents 7f89065 + b1de911 commit b7b159d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Plugins.SolarEdge/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
using Plugins.SolarEdge.Contracts;
using Plugins.SolarEdge.Services;
using Serilog;
using TeslaSolarCharger.Shared.Contracts;
using TeslaSolarCharger.Shared.TimeProviding;

var builder = WebApplication.CreateBuilder(args);

Expand All @@ -14,6 +16,7 @@

builder.Services.AddSingleton<SharedValues>();
builder.Services.AddTransient<ICurrentValuesService, CurrentValuesService>()
.AddTransient<IDateTimeProvider, DateTimeProvider>()
;

builder.Host.UseSerilog((context, configuration) => configuration
Expand Down

0 comments on commit b7b159d

Please sign in to comment.