Skip to content

Commit 27710a4

Browse files
Merge pull request #141 from TransactionProcessing/task/#136_investiagate_tickerq
Task/#136 investiagate tickerq
2 parents a62a0ce + 5b4c93e commit 27710a4

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

TransactionProcessing.SchedulerService/TransactionProcessing.SchedulerService.TickerQ/Program.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@
7878
builder.Logging.ClearProviders();
7979

8080
// Add NLog
81-
builder.Host.UseNLog();
81+
builder.Host.UseNLog().ConfigureAppConfiguration((hostingContext, config) =>
82+
{
83+
config.AddJsonFile("hosting.json", optional: true, reloadOnChange: true);
84+
});
8285

8386
String nlogConfigFilename = "nlog.config";
8487

TransactionProcessing.SchedulerService/TransactionProcessing.SchedulerService.TickerQ/TransactionProcessing.SchedulerService.TickerQ.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
</ItemGroup>
2929

3030
<ItemGroup>
31+
<Content Update="hosting.json">
32+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
33+
</Content>
3134
<Content Update="nlog.config">
3235
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
3336
</Content>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"urls": "http://*:9601"
3+
}

0 commit comments

Comments
 (0)