diff --git a/src/csharp/Grpc.Core.Api/AsyncCallState.cs b/src/csharp/Grpc.Core.Api/AsyncCallState.cs index 9958dbc47e7..7f97e322c3c 100644 --- a/src/csharp/Grpc.Core.Api/AsyncCallState.cs +++ b/src/csharp/Grpc.Core.Api/AsyncCallState.cs @@ -1,6 +1,6 @@ #region Copyright notice and license -// Copyright 2015 gRPC authors. +// Copyright 2019 The gRPC Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ namespace Grpc.Core /// Provides an abstraction over the callback providers /// used by AsyncUnaryCall, AsyncDuplexStreamingCall, etc /// - internal /* readonly */ struct AsyncCallState // can be made readonly in C# 7.2 + internal readonly struct AsyncCallState { readonly object responseHeadersAsync; // Task or Func> readonly object getStatusFunc; // Func or Func diff --git a/src/csharp/Grpc.Core.Tests/Internal/AsyncCallStateTest.cs b/src/csharp/Grpc.Core.Tests/Internal/AsyncCallStateTest.cs index e5513c3f017..f85b0f59d60 100644 --- a/src/csharp/Grpc.Core.Tests/Internal/AsyncCallStateTest.cs +++ b/src/csharp/Grpc.Core.Tests/Internal/AsyncCallStateTest.cs @@ -1,6 +1,6 @@ #region Copyright notice and license -// Copyright 2015 gRPC authors. +// Copyright 2019 The gRPC Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/csharp/tests.json b/src/csharp/tests.json index 5b9ca6dbd14..50eea00c040 100644 --- a/src/csharp/tests.json +++ b/src/csharp/tests.json @@ -3,6 +3,7 @@ "Grpc.Core.Interceptors.Tests.ClientInterceptorTest", "Grpc.Core.Interceptors.Tests.ServerInterceptorTest", "Grpc.Core.Internal.Tests.AsyncCallServerTest", + "Grpc.Core.Internal.Tests.AsyncCallStateTest", "Grpc.Core.Internal.Tests.AsyncCallTest", "Grpc.Core.Internal.Tests.ChannelArgsSafeHandleTest", "Grpc.Core.Internal.Tests.CompletionQueueEventTest",