{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/wcf/pulls/comments/46560028","id":46560028,"diff_hunk":"@@ -0,0 +1,1098 @@\n+// Copyright (c) Microsoft. All rights reserved.\n+// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n+\n+using System.Diagnostics.Contracts;\n+using System.IO;\n+using System.Runtime.InteropServices;\n+using System.Threading;\n+using System.Threading.Tasks;\n+\n+namespace System.ServiceModel.Channels\n+{\n+    /// <summary>\n+    /// One of the design goals here is to prevent the buffer from getting in the way and slowing\n+    /// down underlying stream accesses when it is not needed. If you always read & write for sizes\n+    /// greater than the internal buffer size, then this class may not even allocate the internal buffer.\n+    /// See a large comment in Write for the details of the write buffer heuristic.\n+    /// \n+    /// This class buffers reads & writes in a shared buffer.\n+    /// (If you maintained two buffers separately, one operation would always trash the other buffer\n+    /// anyways, so we might as well use one buffer.) \n+    /// The assumption here is you will almost always be doing a series of reads or writes, but rarely\n+    /// alternate between the two of them on the same stream.\n+    ///\n+    /// Class Invariants:\n+    /// The class has one buffer, shared for reading & writing.\n+    /// It can only be used for one or the other at any point in time - not both.\n+    /// The following should be true:\n+    /// <![CDATA[\n+    ///   * 0 <= _readPos <= _readLen < _bufferSize\n+    ///   * 0 <= _writePos < _bufferSize\n+    ///   * _readPos == _readLen && _readPos > 0 implies the read buffer is valid, but we're at the end of the buffer.\n+    ///   * _readPos == _readLen == 0 means the read buffer contains garbage.\n+    ///   * Either _writePos can be greater than 0, or _readLen & _readPos can be greater than zero,\n+    ///     but neither can be greater than zero at the same time.\n+    ///  ]]>\n+    /// This class will never cache more bytes than the max specified buffer size.\n+    /// However, it may use a temporary buffer of up to twice the size in order to combine several IO operations on\n+    /// the underlying stream into a single operation. This is because we assume that memory copies are significantly\n+    /// faster than IO operations on the underlying stream (if this was not true, using buffering is never appropriate).\n+    /// The max size of this \"shadow\" buffer is limited as to not allocate it on the LOH.\n+    /// Shadowing is always transient. Even when using this technique, this class still guarantees that the number of\n+    /// bytes cached (not yet written to the target stream or not yet consumed by the user) is never larger than the \n+    /// actual specified buffer size.\n+    /// </summary>\n+    internal sealed class BufferedStream : Stream\n+    {\n+        private const int DefaultBufferSize = 4096;\n+\n+\n+        private Stream _stream; // Underlying stream.  Close sets _stream to null.\n+\n+        private byte[] _buffer; // Shared read/write buffer.  Alloc on first use.\n+\n+        private readonly int _bufferSize; // Length of internal buffer (not counting the shadow buffer).\n+\n+        private int _readPos; // Read pointer within shared buffer.\n+        private int _readLen; // Number of bytes read in buffer from _stream.\n+        private int _writePos; // Write pointer within shared buffer.\n+\n+        private Task<int> _lastSyncCompletedReadTask; // The last successful Task returned from ReadAsync\n+        // (perf optimization for successive reads of the same size)\n+\n+        private readonly SemaphoreSlim _sem = new SemaphoreSlim(1, 1);\n+\n+        public BufferedStream(Stream stream) : this(stream, DefaultBufferSize) {}\n+\n+\n+        public BufferedStream(Stream stream, int bufferSize)\n+        {\n+            if (stream == null)\n+                throw new ArgumentNullException(\"stream\");\n+\n+            if (bufferSize <= 0)\n+                throw new ArgumentOutOfRangeException(\"bufferSize\");\n+\n+            Contract.EndContractBlock();\n+\n+            Contract.Assert(!(stream is MemoryStream), \"MemoryStream shouldn't be wrapped in a BufferedStream!\");\n+            Contract.Assert(!(stream is BufferedStream),\n+                \"BufferedStream shouldn't be wrapped in another BufferedStream!\");\n+\n+            _stream = stream;\n+            _bufferSize = bufferSize;\n+\n+            // Allocate _buffer on its first use - it will not be used if all reads\n+            // & writes are greater than or equal to buffer size.\n+\n+            if (!_stream.CanRead && !_stream.CanWrite)\n+                throw new ObjectDisposedException(\"BufferedStream\");\n+        }\n+\n+\n+        private void EnsureNotClosed()\n+        {\n+            if (_stream == null)\n+                throw new ObjectDisposedException(\"BufferedStream\");\n+        }\n+\n+\n+        private void EnsureCanSeek()\n+        {\n+            Contract.Requires(_stream != null);\n+\n+            if (!_stream.CanSeek)\n+                throw new NotSupportedException(\"seek\");\n+        }\n+\n+\n+        private void EnsureCanRead()\n+        {\n+            Contract.Requires(_stream != null);\n+\n+            if (!_stream.CanRead)\n+                throw new NotSupportedException(\"read\");\n+        }\n+\n+\n+        private void EnsureCanWrite()\n+        {\n+            Contract.Requires(_stream != null);\n+\n+            if (!_stream.CanWrite)\n+                throw new NotSupportedException(\"write\");\n+        }\n+\n+        /// <summary><code>MaxShadowBufferSize</code> is chosen such that shadow buffers are not allocated on the Large Object Heap.\n+        /// Currently, an object is allocated on the LOH if it is larger than 85000 bytes.\n+        /// We will go with exactly 80 KBytes, although this is somewhat arbitrary.</summary>\n+        private const int MaxShadowBufferSize = 81920; // Make sure not to get to the Large Object Heap.\n+\n+        private void EnsureShadowBufferAllocated()\n+        {\n+            Contract.Assert(_buffer != null);\n+            Contract.Assert(_bufferSize > 0);\n+\n+            // Already have shadow buffer?\n+            if (_buffer.Length != _bufferSize || _bufferSize >= MaxShadowBufferSize)\n+                return;\n+\n+            byte[] shadowBuffer = new byte[Math.Min(_bufferSize + _bufferSize, MaxShadowBufferSize)];\n+            Array.Copy(_buffer, 0, shadowBuffer, 0, _writePos);\n+            _buffer = shadowBuffer;\n+        }\n+\n+\n+        private void EnsureBufferAllocated()\n+        {\n+            Contract.Assert(_bufferSize > 0);\n+\n+            // BufferedStream is not intended for multi-threaded use, so no worries about the get/set race on _buffer.\n+            if (_buffer == null)\n+                _buffer = new byte[_bufferSize];\n+        }\n+\n+\n+        internal Stream UnderlyingStream\n+        {\n+            get { return _stream; }\n+        }\n+\n+\n+        internal int BufferSize\n+        {\n+            get { return _bufferSize; }\n+        }\n+\n+\n+        public override bool CanRead\n+        {\n+            get { return _stream != null && _stream.CanRead; }\n+        }\n+\n+\n+        public override bool CanWrite\n+        {\n+            get { return _stream != null && _stream.CanWrite; }\n+        }\n+\n+\n+        public override bool CanSeek\n+        {\n+            get { return _stream != null && _stream.CanSeek; }\n+        }\n+\n+\n+        public override long Length\n+        {\n+            get\n+            {\n+                EnsureNotClosed();\n+\n+                if (_writePos > 0)\n+                    FlushWrite();\n+\n+                return _stream.Length;\n+            }\n+        }\n+\n+\n+        public override long Position\n+        {\n+            get\n+            {\n+                EnsureNotClosed();\n+                EnsureCanSeek();\n+\n+                Contract.Assert(!(_writePos > 0 && _readPos != _readLen),\n+                    \"Read and Write buffers cannot both have data in them at the same time.\");\n+                return _stream.Position + (_readPos - _readLen + _writePos);\n+            }\n+            set\n+            {\n+                if (value < 0)\n+                    throw new ArgumentOutOfRangeException(\"value\");\n+                Contract.EndContractBlock();\n+\n+                EnsureNotClosed();\n+                EnsureCanSeek();\n+\n+                if (_writePos > 0)\n+                    FlushWrite();\n+\n+                _readPos = 0;\n+                _readLen = 0;\n+                _stream.Seek(value, SeekOrigin.Begin);\n+            }\n+        }\n+\n+\n+        protected override void Dispose(bool disposing)\n+        {\n+            try\n+            {\n+                if (disposing && _stream != null)\n+                {\n+                    try\n+                    {\n+                        Flush();\n+                    }\n+                    finally\n+                    {\n+                        _stream.Dispose();\n+                    }\n+                }\n+            }\n+            finally\n+            {\n+                _stream = null;\n+                _buffer = null;\n+                _lastSyncCompletedReadTask = null;\n+\n+                // Call base.Dispose(bool) to cleanup async IO resources\n+                base.Dispose(disposing);\n+            }\n+        }\n+\n+\n+        public override void Flush()\n+        {\n+            EnsureNotClosed();\n+\n+            // Has WRITE data in the buffer:\n+            if (_writePos > 0)\n+            {\n+                FlushWrite();\n+                Contract.Assert(_writePos == 0 && _readPos == 0 && _readLen == 0);\n+                return;\n+            }\n+\n+            // Has READ data in the buffer:\n+            if (_readPos < _readLen)\n+            {\n+                // If the underlying stream is not seekable AND we have something in the read buffer, then FlushRead would throw.\n+                // We can either throw away the buffer resulting in data loss (!) or ignore the Flush.\n+                // (We cannot throw becasue it would be a breaking change.) We opt into ignoring the Flush in that situation.\n+                if (!_stream.CanSeek)\n+                    return;\n+\n+                FlushRead();\n+\n+                // User streams may have opted to throw from Flush if CanWrite is false (although the abstract Stream does not do so).\n+                // However, if we do not forward the Flush to the underlying stream, we may have problems when chaining several streams.\n+                // Let us make a best effort attempt:\n+                if (_stream.CanWrite || _stream is BufferedStream)\n+                    _stream.Flush();\n+\n+                Contract.Assert(_writePos == 0 && _readPos == 0 && _readLen == 0);\n+                return;\n+            }\n+\n+            // We had no data in the buffer, but we still need to tell the underlying stream to flush.\n+            if (_stream.CanWrite || _stream is BufferedStream)\n+                _stream.Flush();\n+\n+            _writePos = _readPos = _readLen = 0;\n+        }\n+\n+        public override Task FlushAsync(CancellationToken cancellationToken)\n+        {\n+            if (cancellationToken.IsCancellationRequested)\n+                return Task.FromCanceled<int>(cancellationToken);\n+\n+            EnsureNotClosed();\n+\n+            return FlushAsyncInternal(cancellationToken, this, _stream, _writePos, _readPos, _readLen);\n+        }\n+\n+\n+        private static async Task FlushAsyncInternal(CancellationToken cancellationToken,\n+                                                     BufferedStream _this, Stream stream, int writePos, int readPos,","path":"src/System.Private.ServiceModel/src/System/ServiceModel/Channels/BufferedStream.cs","position":310,"original_position":310,"commit_id":"45d3da3b86bfe2f2b9f67f6d74826ef7d34c144b","original_commit_id":"45d3da3b86bfe2f2b9f67f6d74826ef7d34c144b","user":{"login":"iamjasonp","id":1616847,"avatar_url":"https://avatars.githubusercontent.com/u/1616847?v=3","gravatar_id":"","url":"https://api.github.com/users/iamjasonp","html_url":"https://github.com/iamjasonp","followers_url":"https://api.github.com/users/iamjasonp/followers","following_url":"https://api.github.com/users/iamjasonp/following{/other_user}","gists_url":"https://api.github.com/users/iamjasonp/gists{/gist_id}","starred_url":"https://api.github.com/users/iamjasonp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamjasonp/subscriptions","organizations_url":"https://api.github.com/users/iamjasonp/orgs","repos_url":"https://api.github.com/users/iamjasonp/repos","events_url":"https://api.github.com/users/iamjasonp/events{/privacy}","received_events_url":"https://api.github.com/users/iamjasonp/received_events","type":"User","site_admin":false},"body":"NIT: why `_this` as a parameter? Is it just intended as a hint for the developer?","created_at":"2015-12-03T14:52:59Z","updated_at":"2015-12-03T14:52:59Z","html_url":"https://github.com/dotnet/wcf/pull/573#discussion_r46560028","pull_request_url":"https://api.github.com/repos/dotnet/wcf/pulls/573","_links":{"self":{"href":"https://api.github.com/repos/dotnet/wcf/pulls/comments/46560028"},"html":{"href":"https://github.com/dotnet/wcf/pull/573#discussion_r46560028"},"pull_request":{"href":"https://api.github.com/repos/dotnet/wcf/pulls/573"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/wcf/pulls/573","id":52493447,"html_url":"https://github.com/dotnet/wcf/pull/573","diff_url":"https://github.com/dotnet/wcf/pull/573.diff","patch_url":"https://github.com/dotnet/wcf/pull/573.patch","issue_url":"https://api.github.com/repos/dotnet/wcf/issues/573","number":573,"state":"open","locked":false,"title":"Adding buffer to Http streamed mode transfer.","user":{"login":"mconnew","id":8648390,"avatar_url":"https://avatars.githubusercontent.com/u/8648390?v=3","gravatar_id":"","url":"https://api.github.com/users/mconnew","html_url":"https://github.com/mconnew","followers_url":"https://api.github.com/users/mconnew/followers","following_url":"https://api.github.com/users/mconnew/following{/other_user}","gists_url":"https://api.github.com/users/mconnew/gists{/gist_id}","starred_url":"https://api.github.com/users/mconnew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mconnew/subscriptions","organizations_url":"https://api.github.com/users/mconnew/orgs","repos_url":"https://api.github.com/users/mconnew/repos","events_url":"https://api.github.com/users/mconnew/events{/privacy}","received_events_url":"https://api.github.com/users/mconnew/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-03T05:26:56Z","updated_at":"2015-12-03T14:52:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bcaf15123fce1566f3f5a794db081a52270c0674","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/wcf/pulls/573/commits","review_comments_url":"https://api.github.com/repos/dotnet/wcf/pulls/573/comments","review_comment_url":"https://api.github.com/repos/dotnet/wcf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/wcf/issues/573/comments","statuses_url":"https://api.github.com/repos/dotnet/wcf/statuses/45d3da3b86bfe2f2b9f67f6d74826ef7d34c144b","head":{"label":"mconnew:BufferedHttpStream","ref":"BufferedHttpStream","sha":"45d3da3b86bfe2f2b9f67f6d74826ef7d34c144b","user":{"login":"mconnew","id":8648390,"avatar_url":"https://avatars.githubusercontent.com/u/8648390?v=3","gravatar_id":"","url":"https://api.github.com/users/mconnew","html_url":"https://github.com/mconnew","followers_url":"https://api.github.com/users/mconnew/followers","following_url":"https://api.github.com/users/mconnew/following{/other_user}","gists_url":"https://api.github.com/users/mconnew/gists{/gist_id}","starred_url":"https://api.github.com/users/mconnew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mconnew/subscriptions","organizations_url":"https://api.github.com/users/mconnew/orgs","repos_url":"https://api.github.com/users/mconnew/repos","events_url":"https://api.github.com/users/mconnew/events{/privacy}","received_events_url":"https://api.github.com/users/mconnew/received_events","type":"User","site_admin":false},"repo":{"id":35959856,"name":"wcf","full_name":"mconnew/wcf","owner":{"login":"mconnew","id":8648390,"avatar_url":"https://avatars.githubusercontent.com/u/8648390?v=3","gravatar_id":"","url":"https://api.github.com/users/mconnew","html_url":"https://github.com/mconnew","followers_url":"https://api.github.com/users/mconnew/followers","following_url":"https://api.github.com/users/mconnew/following{/other_user}","gists_url":"https://api.github.com/users/mconnew/gists{/gist_id}","starred_url":"https://api.github.com/users/mconnew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mconnew/subscriptions","organizations_url":"https://api.github.com/users/mconnew/orgs","repos_url":"https://api.github.com/users/mconnew/repos","events_url":"https://api.github.com/users/mconnew/events{/privacy}","received_events_url":"https://api.github.com/users/mconnew/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mconnew/wcf","description":"This repo contains the client-oriented WCF libraries that enable applications built on .NET Core to communicate with WCF services.","fork":true,"url":"https://api.github.com/repos/mconnew/wcf","forks_url":"https://api.github.com/repos/mconnew/wcf/forks","keys_url":"https://api.github.com/repos/mconnew/wcf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mconnew/wcf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mconnew/wcf/teams","hooks_url":"https://api.github.com/repos/mconnew/wcf/hooks","issue_events_url":"https://api.github.com/repos/mconnew/wcf/issues/events{/number}","events_url":"https://api.github.com/repos/mconnew/wcf/events","assignees_url":"https://api.github.com/repos/mconnew/wcf/assignees{/user}","branches_url":"https://api.github.com/repos/mconnew/wcf/branches{/branch}","tags_url":"https://api.github.com/repos/mconnew/wcf/tags","blobs_url":"https://api.github.com/repos/mconnew/wcf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mconnew/wcf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mconnew/wcf/git/refs{/sha}","trees_url":"https://api.github.com/repos/mconnew/wcf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mconnew/wcf/statuses/{sha}","languages_url":"https://api.github.com/repos/mconnew/wcf/languages","stargazers_url":"https://api.github.com/repos/mconnew/wcf/stargazers","contributors_url":"https://api.github.com/repos/mconnew/wcf/contributors","subscribers_url":"https://api.github.com/repos/mconnew/wcf/subscribers","subscription_url":"https://api.github.com/repos/mconnew/wcf/subscription","commits_url":"https://api.github.com/repos/mconnew/wcf/commits{/sha}","git_commits_url":"https://api.github.com/repos/mconnew/wcf/git/commits{/sha}","comments_url":"https://api.github.com/repos/mconnew/wcf/comments{/number}","issue_comment_url":"https://api.github.com/repos/mconnew/wcf/issues/comments{/number}","contents_url":"https://api.github.com/repos/mconnew/wcf/contents/{+path}","compare_url":"https://api.github.com/repos/mconnew/wcf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mconnew/wcf/merges","archive_url":"https://api.github.com/repos/mconnew/wcf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mconnew/wcf/downloads","issues_url":"https://api.github.com/repos/mconnew/wcf/issues{/number}","pulls_url":"https://api.github.com/repos/mconnew/wcf/pulls{/number}","milestones_url":"https://api.github.com/repos/mconnew/wcf/milestones{/number}","notifications_url":"https://api.github.com/repos/mconnew/wcf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mconnew/wcf/labels{/name}","releases_url":"https://api.github.com/repos/mconnew/wcf/releases{/id}","created_at":"2015-05-20T16:24:51Z","updated_at":"2015-05-20T16:24:53Z","pushed_at":"2015-12-03T05:26:06Z","git_url":"git://github.com/mconnew/wcf.git","ssh_url":"git@github.com:mconnew/wcf.git","clone_url":"https://github.com/mconnew/wcf.git","svn_url":"https://github.com/mconnew/wcf","homepage":"","size":3732,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dotnet:master","ref":"master","sha":"27928ac7c38d4e689460de315120d64ea31c809c","user":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":35562993,"name":"wcf","full_name":"dotnet/wcf","owner":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/wcf","description":"This repo contains the client-oriented WCF libraries that enable applications built on .NET Core to communicate with WCF services.","fork":false,"url":"https://api.github.com/repos/dotnet/wcf","forks_url":"https://api.github.com/repos/dotnet/wcf/forks","keys_url":"https://api.github.com/repos/dotnet/wcf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/wcf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/wcf/teams","hooks_url":"https://api.github.com/repos/dotnet/wcf/hooks","issue_events_url":"https://api.github.com/repos/dotnet/wcf/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/wcf/events","assignees_url":"https://api.github.com/repos/dotnet/wcf/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/wcf/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/wcf/tags","blobs_url":"https://api.github.com/repos/dotnet/wcf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/wcf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/wcf/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/wcf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/wcf/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/wcf/languages","stargazers_url":"https://api.github.com/repos/dotnet/wcf/stargazers","contributors_url":"https://api.github.com/repos/dotnet/wcf/contributors","subscribers_url":"https://api.github.com/repos/dotnet/wcf/subscribers","subscription_url":"https://api.github.com/repos/dotnet/wcf/subscription","commits_url":"https://api.github.com/repos/dotnet/wcf/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/wcf/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/wcf/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/wcf/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/wcf/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/wcf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/wcf/merges","archive_url":"https://api.github.com/repos/dotnet/wcf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/wcf/downloads","issues_url":"https://api.github.com/repos/dotnet/wcf/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/wcf/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/wcf/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/wcf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/wcf/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/wcf/releases{/id}","created_at":"2015-05-13T17:17:03Z","updated_at":"2015-12-03T01:03:15Z","pushed_at":"2015-12-03T11:41:49Z","git_url":"git://github.com/dotnet/wcf.git","ssh_url":"git@github.com:dotnet/wcf.git","clone_url":"https://github.com/dotnet/wcf.git","svn_url":"https://github.com/dotnet/wcf","homepage":"","size":4781,"stargazers_count":538,"watchers_count":538,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":171,"mirror_url":null,"open_issues_count":113,"forks":171,"open_issues":113,"watchers":538,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/wcf/pulls/573"},"html":{"href":"https://github.com/dotnet/wcf/pull/573"},"issue":{"href":"https://api.github.com/repos/dotnet/wcf/issues/573"},"comments":{"href":"https://api.github.com/repos/dotnet/wcf/issues/573/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/wcf/pulls/573/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/wcf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/wcf/pulls/573/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/wcf/statuses/45d3da3b86bfe2f2b9f67f6d74826ef7d34c144b"}}}}