diff options
author | 2016-03-14 16:07:52 -0700 | |
---|---|---|
committer | 2016-04-01 16:25:41 -0700 | |
commit | d39426d5053dc1a94910721dc0788d2ecf2cbf06 (patch) | |
tree | f4b2b22c78d2be8107c63611b0bc3243bc65f871 /src/csharp/Grpc.HealthCheck/HealthServiceImpl.cs | |
parent | 10a002d7e3809c98b6a8068a3bf103e00dec88ea (diff) |
change C# service implementations to inherit from a generated base class
Diffstat (limited to 'src/csharp/Grpc.HealthCheck/HealthServiceImpl.cs')
-rw-r--r-- | src/csharp/Grpc.HealthCheck/HealthServiceImpl.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/csharp/Grpc.HealthCheck/HealthServiceImpl.cs b/src/csharp/Grpc.HealthCheck/HealthServiceImpl.cs index a6e82aa0d4..d0406ece00 100644 --- a/src/csharp/Grpc.HealthCheck/HealthServiceImpl.cs +++ b/src/csharp/Grpc.HealthCheck/HealthServiceImpl.cs @@ -51,7 +51,7 @@ namespace Grpc.HealthCheck /// server.AddServiceDefinition(Grpc.Health.V1.Health.BindService(serviceImpl)); /// </code> /// </summary> - public class HealthServiceImpl : Grpc.Health.V1.Health.IHealth + public class HealthServiceImpl : Grpc.Health.V1.Health.HealthBase { private readonly object myLock = new object(); private readonly Dictionary<string, HealthCheckResponse.Types.ServingStatus> statusMap = @@ -99,7 +99,7 @@ namespace Grpc.HealthCheck /// <param name="request">The check request.</param> /// <param name="context">The call context.</param> /// <returns>The asynchronous response.</returns> - public Task<HealthCheckResponse> Check(HealthCheckRequest request, ServerCallContext context) + public override Task<HealthCheckResponse> Check(HealthCheckRequest request, ServerCallContext context) { lock (myLock) { |