mirror of
https://github.com/Stefan-5422/-T5-Elektrifikatsiya.git
synced 2026-09-04 00:45:58 +02:00
Merge remote-tracking branch 'origin/feature-DeviceRegistration' into feature-DeviceRegistration
This commit is contained in:
+1
-1
@@ -351,4 +351,4 @@ MigrationBackup/
|
|||||||
|
|
||||||
# Project specific
|
# Project specific
|
||||||
*.sqlite*
|
*.sqlite*
|
||||||
/src/Elektrifikatsiya/Elektrifikatsiya/appsettings.Development.json
|
src/Elektrifikatsiya/Elektrifikatsiya/appsettings.Development.json
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -12,7 +12,6 @@ namespace Elektrifikatsiya.Models
|
|||||||
public string Description { get; set; }
|
public string Description { get; set; }
|
||||||
public DateTime Date { get; set; }
|
public DateTime Date { get; set; }
|
||||||
public Device Plug { get; set; }
|
public Device Plug { get; set; }
|
||||||
//if Plug Class implemented -> Property for which plug this event is from
|
|
||||||
|
|
||||||
public Event() { }
|
public Event() { }
|
||||||
public Event(string eventName, string description, DateTime date, Device plug)
|
public Event(string eventName, string description, DateTime date, Device plug)
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ builder.Services.AddSingleton<IScheduledService>(s => s.GetRequiredService<IUpda
|
|||||||
builder.Services.AddSingleton<IScheduledService>(s => s.GetRequiredService<INotificationService>());
|
builder.Services.AddSingleton<IScheduledService>(s => s.GetRequiredService<INotificationService>());
|
||||||
builder.Services.AddSingleton<IEmailService, EmailService>();
|
builder.Services.AddSingleton<IEmailService, EmailService>();
|
||||||
builder.Services.AddSingleton<IEventService, EventService>();
|
builder.Services.AddSingleton<IEventService, EventService>();
|
||||||
builder.Services.AddSingleton<IHiveMQClient, HiveMQClient>((provider) =>
|
builder.Services.AddSingleton<IHiveMQClient, HiveMQClient>((provider)=>
|
||||||
{
|
{
|
||||||
HiveMQClientOptions options = new()
|
HiveMQClientOptions options = new()
|
||||||
{
|
{
|
||||||
|
|||||||
Binary file not shown.
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"DetailedErrors": true,
|
|
||||||
"Logging": {
|
|
||||||
"LogLevel": {
|
|
||||||
"Default": "Information",
|
|
||||||
"Microsoft.AspNetCore": "Warning"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"EmailSettings": {
|
|
||||||
"User": "<SMTP_USER>",
|
|
||||||
"Key": "<SMTP_KEY>",
|
|
||||||
"DefaultEmail": "<SMTP_EMAIL_ADDRESS>",
|
|
||||||
"Templates": {
|
|
||||||
"DailyNotification": "../assets/DailyNotif.html"
|
|
||||||
},
|
|
||||||
"SmtpServer": "<SMTP_SERVER>",
|
|
||||||
"SmtpPort": <SMTP_PORT>
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user