-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ConsulWorkerIdGenerator Support HealthChecks
- Loading branch information
1 parent
9a6855b
commit 772edb5
Showing
6 changed files
with
118 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
namespace NetCorePal.Extensions.Snowflake.Consul | ||
using Microsoft.Extensions.Diagnostics.HealthChecks; | ||
|
||
namespace NetCorePal.Extensions.Snowflake.Consul | ||
{ | ||
public class ConsulWorkerIdGeneratorOptions | ||
{ | ||
public string AppName { get; set; } = "myAppName"; | ||
public string ConsulKeyPrefix { get; set; } = string.Empty; | ||
public int SessionTtlSeconds { get; set; } = 60; | ||
public int SessionRefreshIntervalSeconds { get; set; } = 15; | ||
|
||
public HealthStatus UnhealthyStatus { get; set; } = HealthStatus.Unhealthy; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters