You've already forked linux-packaging-mono
Imported Upstream version 4.3.2.467
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
@@ -25,4 +25,4 @@ using System.Windows.Markup;
|
||||
|
||||
// Friend assemblies
|
||||
[assembly: InternalsVisibleToAttribute("NetFx.Checkin.Common.NetFxFriends, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")]
|
||||
[assembly: InternalsVisibleToAttribute("System.ServiceModel.Friend, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")]
|
||||
[assembly: InternalsVisibleToAttribute("System.ServiceModel.Friend, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")]
|
@@ -8,6 +8,7 @@ namespace System.ServiceModel.Channels
|
||||
using System.IO;
|
||||
using System.Net.Http;
|
||||
using System.Runtime;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml;
|
||||
|
||||
public static class ByteStreamMessage
|
||||
@@ -552,6 +553,13 @@ namespace System.ServiceModel.Channels
|
||||
|
||||
static bool HandleWriteBodyContents(IAsyncResult result)
|
||||
{
|
||||
// If result is a task, we need to get the result so that exceptions are bubbled up in case the task is faulted.
|
||||
Task t = result as Task;
|
||||
if (t != null)
|
||||
{
|
||||
t.GetAwaiter().GetResult();
|
||||
}
|
||||
|
||||
WriteBodyContentsAsyncResult thisPtr = (WriteBodyContentsAsyncResult)result.AsyncState;
|
||||
thisPtr.writer.WriteEndElement();
|
||||
return true;
|
||||
|
@@ -7,6 +7,7 @@ namespace System.ServiceModel.Channels
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml;
|
||||
|
||||
@@ -15,6 +16,7 @@ namespace System.ServiceModel.Channels
|
||||
bool ownsStream;
|
||||
ByteStreamWriterState state;
|
||||
Stream stream;
|
||||
XmlWriterSettings settings;
|
||||
|
||||
public XmlByteStreamWriter(Stream stream, bool ownsStream)
|
||||
{
|
||||
@@ -30,6 +32,24 @@ namespace System.ServiceModel.Channels
|
||||
get { return ByteStreamWriterStateToWriteState(this.state); }
|
||||
}
|
||||
|
||||
public override XmlWriterSettings Settings
|
||||
{
|
||||
get
|
||||
{
|
||||
if (settings == null)
|
||||
{
|
||||
XmlWriterSettings newSettings = new XmlWriterSettings()
|
||||
{
|
||||
Async = true
|
||||
};
|
||||
|
||||
Interlocked.CompareExchange<XmlWriterSettings>(ref this.settings, newSettings, null);
|
||||
}
|
||||
|
||||
return this.settings;
|
||||
}
|
||||
}
|
||||
|
||||
public override void Close()
|
||||
{
|
||||
if (this.state != ByteStreamWriterState.Closed)
|
||||
|
Reference in New Issue
Block a user