2 writes to buildBatchWriter
System.Data.Services.Client (2)
System\Data\Services\Client\DataServiceContext.cs (2)
4458
this.
buildBatchWriter
= null;
4852
this.
buildBatchWriter
= new StreamWriter(this.httpWebResponseStream); // defaults to UTF8 w/o preamble
30 references to buildBatchWriter
System.Data.Services.Client (30)
System\Data\Services\Client\DataServiceContext.cs (30)
4448
if (null != this.
buildBatchWriter
)
4452
this.
buildBatchWriter
.WriteLine("--{0}--", this.batchBoundary);
4454
this.
buildBatchWriter
.Flush();
4455
Debug.Assert(Object.ReferenceEquals(this.httpWebResponseStream, this.
buildBatchWriter
.BaseStream), "expected different stream");
4850
if (null == this.
buildBatchWriter
)
4864
this.
buildBatchWriter
.WriteLine("--{0}", this.batchBoundary);
4865
this.
buildBatchWriter
.WriteLine("{0}: {1}; boundary={2}", XmlConstants.HttpContentType, XmlConstants.MimeMultiPartMixed, this.changesetBoundary);
4866
this.
buildBatchWriter
.WriteLine();
4867
this.
buildBatchWriter
.WriteLine("--{0}", this.changesetBoundary);
4875
Debug.Assert(null != this.
buildBatchWriter
, "buildBatchWriter");
4877
this.
buildBatchWriter
.WriteLine();
4878
this.
buildBatchWriter
.WriteLine("--{0}--", this.changesetBoundary);
4897
WriteOperationResponseHeaders(this.
buildBatchWriter
, 500);
4898
this.
buildBatchWriter
.WriteLine("{0}: {1}", XmlConstants.HttpContentType, XmlConstants.MimeTextPlain);
4899
this.
buildBatchWriter
.WriteLine("{0}: {1}", XmlConstants.HttpContentID, this.ChangedEntries[this.entryIndex].ChangeOrder);
4900
this.
buildBatchWriter
.WriteLine();
4901
this.
buildBatchWriter
.WriteLine(e.ToString());
4990
WriteOperationResponseHeaders(this.
buildBatchWriter
, (int)response.StatusCode);
4995
this.
buildBatchWriter
.WriteLine("{0}: {1}", name, response.Headers[name]);
4999
this.
buildBatchWriter
.WriteLine("{0}: {1}", XmlConstants.HttpContentID, entry.ChangeOrder);
5000
this.
buildBatchWriter
.WriteLine();
5013
this.
buildBatchWriter
.Flush();
5014
if (0 == WebUtil.CopyStream(stream, this.
buildBatchWriter
.BaseStream, ref this.buildBatchBuffer))
5025
Debug.Assert(null != this.
buildBatchWriter
, "null buildBatchWriter");
5026
this.
buildBatchWriter
.Flush();
5036
this.
buildBatchWriter
.BaseStream.Position -= NewLine.Length;
5037
this.
buildBatchWriter
.WriteLine("{0}: {1}", XmlConstants.HttpContentLength, 0);
5038
this.
buildBatchWriter
.WriteLine();
5943
if (null != this.
buildBatchWriter
)
5945
this.
buildBatchWriter
.Flush();