28 references to MimeGlobals
System.Runtime.Serialization (28)
System\Xml\XmlMtomReader.cs (2)
359
if (uri.StartsWith(
MimeGlobals
.ContentIDScheme, StringComparison.Ordinal))
360
contentID = String.Format(CultureInfo.InvariantCulture, "<{0}>", Uri.UnescapeDataString(uri.Substring(
MimeGlobals
.ContentIDScheme.Length)));
System\Xml\XmlMtomWriter.cs (26)
121
mimeWriter.WriteHeader(
MimeGlobals
.MimeVersionHeader,
MimeGlobals
.DefaultVersion);
122
mimeWriter.WriteHeader(
MimeGlobals
.ContentTypeHeader, this.initialContentTypeForMimeMessage);
126
WriteMimeHeaders(this.contentID, this.initialContentTypeForRootPart, this.isUTF8 ?
MimeGlobals
.Encoding8bit :
MimeGlobals
.EncodingBinary);
346
MimePart mimePart = new MimePart(binaryDataChunks, contentID, contentType,
MimeGlobals
.EncodingBinary, sizeOfBufferedBinaryData, maxSizeInBytes);
354
Writer.WriteValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}",
MimeGlobals
.ContentIDScheme, contentID));
425
mimeWriter.WriteHeader(
MimeGlobals
.ContentIDHeader, String.Format(CultureInfo.InvariantCulture, "<{0}>", contentID));
427
mimeWriter.WriteHeader(
MimeGlobals
.ContentTransferEncodingHeader, contentTransferEncoding);
429
mimeWriter.WriteHeader(
MimeGlobals
.ContentTypeHeader, contentType);
907
int size = XmlMtomWriter.ValidateSizeOfMessage(maxSizeInBytes, 0,
MimeGlobals
.CRLF.Length * 3);
909
size += XmlMtomWriter.ValidateSizeOfMessage(maxSizeInBytes, size, MimeWriter.GetHeaderSize(
MimeGlobals
.ContentTransferEncodingHeader, contentTransferEncoding, maxSizeInBytes));
911
size += XmlMtomWriter.ValidateSizeOfMessage(maxSizeInBytes, size, MimeWriter.GetHeaderSize(
MimeGlobals
.ContentTypeHeader, contentType, maxSizeInBytes));
914
size += XmlMtomWriter.ValidateSizeOfMessage(maxSizeInBytes, size, MimeWriter.GetHeaderSize(
MimeGlobals
.ContentIDHeader, contentID, maxSizeInBytes));
1003
int size = XmlMtomWriter.ValidateSizeOfMessage(maxSizeInBytes, 0,
MimeGlobals
.COLONSPACE.Length +
MimeGlobals
.CRLF.Length);
1011
byte[] boundaryBytes = new byte[boundary.Length +
MimeGlobals
.BoundaryPrefix.Length];
1012
for (int i = 0; i <
MimeGlobals
.BoundaryPrefix.Length; i++)
1013
boundaryBytes[i] =
MimeGlobals
.BoundaryPrefix[i];
1014
Encoding.ASCII.GetBytes(boundary, 0, boundary.Length, boundaryBytes,
MimeGlobals
.BoundaryPrefix.Length);
1059
bufferedWrite.Write(
MimeGlobals
.CRLF);
1081
bufferedWrite.Write(
MimeGlobals
.DASHDASH);
1082
bufferedWrite.Write(
MimeGlobals
.CRLF);
1116
bufferedWrite.Write(
MimeGlobals
.COLONSPACE);
1118
bufferedWrite.Write(
MimeGlobals
.CRLF);
1135
bufferedWrite.Write(
MimeGlobals
.CRLF);