Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
emersonbiondo committed Nov 11, 2023
1 parent e1e4755 commit c3c507b
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 32 deletions.
50 changes: 25 additions & 25 deletions Schedule.sln → ScheduleService.sln
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.7.34024.191
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ScheduleService", "ScheduleService\ScheduleService.csproj", "{E682A06C-71FB-4F19-A00C-4C8A37286105}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E682A06C-71FB-4F19-A00C-4C8A37286105}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E682A06C-71FB-4F19-A00C-4C8A37286105}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E682A06C-71FB-4F19-A00C-4C8A37286105}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E682A06C-71FB-4F19-A00C-4C8A37286105}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {2C75BBFD-56F4-41E4-B7FE-12CD5D1D2990}
EndGlobalSection
EndGlobal

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.7.34024.191
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ScheduleService", "ScheduleService\ScheduleService.csproj", "{E682A06C-71FB-4F19-A00C-4C8A37286105}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E682A06C-71FB-4F19-A00C-4C8A37286105}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E682A06C-71FB-4F19-A00C-4C8A37286105}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E682A06C-71FB-4F19-A00C-4C8A37286105}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E682A06C-71FB-4F19-A00C-4C8A37286105}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {2C75BBFD-56F4-41E4-B7FE-12CD5D1D2990}
EndGlobalSection
EndGlobal
8 changes: 5 additions & 3 deletions ScheduleService/Service.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using Microsoft.Extensions.Logging;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Diagnostics;

Expand All @@ -16,6 +13,11 @@ public Service(ILogger<WindowsBackgroundService> logger) {

public async Task Execute(List<ItemCommand> itemCommands)
{
if (itemCommands.Count == 0)
{
logger.LogWarning("ItemCommands is Empty");
}

foreach (var itemCommand in itemCommands.OrderBy(x => x.OrderId)) {
try
{
Expand Down
2 changes: 0 additions & 2 deletions ScheduleService/appsettings.Development.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"UseCrontab": true,
"Crontab": "*/10 * * * * *"
},

"Logging": {
"LogLevel": {
"Default": "Information",
Expand All @@ -18,7 +17,6 @@
"MaxRollingFiles": 5
}
},

"ItemCommands": [
{
"OrderId": 1,
Expand Down
2 changes: 0 additions & 2 deletions ScheduleService/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"UseCrontab": true,
"Crontab": "*/10 * * * * *"
},

"Logging": {
"LogLevel": {
"Default": "Information",
Expand All @@ -18,7 +17,6 @@
"MaxRollingFiles": 5
}
},

"ItemCommands": [
]
}

0 comments on commit c3c507b

Please sign in to comment.