Skip to content

Commit

Permalink
Update TweekManagementHealthCheck.cs (#615)
Browse files Browse the repository at this point in the history
* Update TweekManagementHealthCheck.cs

* Update TweekManagementHealthCheck.cs

* Update Tweek.ApiService.NetCore.csproj
  • Loading branch information
Yshayy committed Sep 14, 2017
1 parent 27b3b7c commit c03775c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -20,6 +20,6 @@ public TweekManagementHealthCheck(TweekManagementRulesDriver driver)
public string Name { get; } = "TweekManagementRulesDriver";
public object GetDetails() => new {_driver.CurrentLabel, _driver.LastCheckTime };

public bool IsAlive() => DateTime.UtcNow - _driver.LastCheckTime < TimeSpan.FromMinutes(5);
public bool IsAlive() => !String.IsNullOrEmpty(_driver.CurrentLabel) && DateTime.UtcNow - _driver.LastCheckTime < TimeSpan.FromMinutes(5);
}
}
@@ -1,7 +1,7 @@
<Project ToolsVersion="15.0" Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<VersionPrefix>0.2.1</VersionPrefix>
<VersionPrefix>0.2.2</VersionPrefix>
<DockerComposeProjectPath>..\..\..\deployments\docker-compose.dcproj</DockerComposeProjectPath>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>1591, 1701, 1702, 1998</NoWarn>
Expand Down Expand Up @@ -47,4 +47,4 @@
<ResolvedFileToPublish Include="@(FinalDocFile)" RelativePath="@(FinalDocFile->'%(Filename)%(Extension)')" />
</ItemGroup>
</Target>
</Project>
</Project>

0 comments on commit c03775c

Please sign in to comment.