Created
November 14, 2019 01:28
-
-
Save dcomartin/70c562b9ea530ec36223083e2bdb2c9b to your computer and use it in GitHub Desktop.
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
using System.Threading.Tasks; | |
using Orleans.Concurrency; | |
namespace Orleans.AspNetCore.Demo.Grains | |
{ | |
public interface IHealthCheckGrain : IGrainWithGuidKey | |
{ | |
Task<bool> IsHealthy(); | |
} | |
[StatelessWorker(1)] | |
public class HealthCheckGrain : Grain, IHealthCheckGrain | |
{ | |
public Task<bool> IsHealthy() | |
{ | |
return Task.FromResult(true); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment