-
Notifications
You must be signed in to change notification settings - Fork 965
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow runner to check service connection in background.
- Loading branch information
1 parent
59ec9b4
commit 53a41fb
Showing
5 changed files
with
215 additions
and
11 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Runtime.Serialization; | ||
using Newtonsoft.Json; | ||
|
||
namespace GitHub.DistributedTask.WebApi | ||
{ | ||
[DataContract] | ||
public class ServiceConnectivityCheckInput | ||
{ | ||
[JsonConstructor] | ||
public ServiceConnectivityCheckInput() | ||
{ | ||
Endpoints = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); | ||
} | ||
|
||
[DataMember(EmitDefaultValue = false)] | ||
public Dictionary<string, string> Endpoints { get; set; } | ||
|
||
[DataMember(EmitDefaultValue = false)] | ||
public int IntervalInSecond { get; set; } | ||
|
||
[DataMember(EmitDefaultValue = false)] | ||
public int RequestTimeoutInSecond { get; set; } | ||
} | ||
|
||
[DataContract] | ||
public class ServiceConnectivityCheckResult | ||
{ | ||
[JsonConstructor] | ||
public ServiceConnectivityCheckResult() | ||
{ | ||
EndpointsResult = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); | ||
} | ||
|
||
[DataMember(Order = 1, EmitDefaultValue = false)] | ||
public bool HasFailure { get; set; } | ||
|
||
[DataMember(Order = 2, EmitDefaultValue = false)] | ||
public Dictionary<string, List<string>> EndpointsResult { get; set; } | ||
} | ||
} |
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