| Index: third_party/grpc/src/csharp/Grpc.Core/IAsyncStreamReader.cs
|
| diff --git a/third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/WrappersPartial.cs b/third_party/grpc/src/csharp/Grpc.Core/IAsyncStreamReader.cs
|
| similarity index 76%
|
| copy from third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/WrappersPartial.cs
|
| copy to third_party/grpc/src/csharp/Grpc.Core/IAsyncStreamReader.cs
|
| index 9f620eb4012e35421383ce544f51d7087f4100a1..49e1ea783253b1124e750a4bbd9baebe82c07972 100644
|
| --- a/third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/WrappersPartial.cs
|
| +++ b/third_party/grpc/src/csharp/Grpc.Core/IAsyncStreamReader.cs
|
| @@ -1,7 +1,7 @@
|
| #region Copyright notice and license
|
| -// Protocol Buffers - Google's data interchange format
|
| -// Copyright 2008 Google Inc. All rights reserved.
|
| -// https://developers.google.com/protocol-buffers/
|
| +
|
| +// Copyright 2015, Google Inc.
|
| +// All rights reserved.
|
| //
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| @@ -28,15 +28,23 @@
|
| // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| +
|
| #endregion
|
|
|
| -namespace Google.Protobuf.WellKnownTypes
|
| +using System;
|
| +using System.Collections.Generic;
|
| +using System.Linq;
|
| +using System.Text;
|
| +using System.Threading.Tasks;
|
| +
|
| +namespace Grpc.Core
|
| {
|
| - public static partial class WrappersReflection
|
| + /// <summary>
|
| + /// A stream of messages to be read.
|
| + /// </summary>
|
| + /// <typeparam name="T">The message type.</typeparam>
|
| + public interface IAsyncStreamReader<T> : IAsyncEnumerator<T>
|
| {
|
| - /// <summary>
|
| - /// Field number for the single "value" field in all wrapper types.
|
| - /// </summary>
|
| - internal const int WrapperValueFieldNumber = Int32Value.ValueFieldNumber;
|
| + // TODO(jtattermusch): consider just using IAsyncEnumerator instead of this interface.
|
| }
|
| }
|
|
|