@@ -46,6 +46,12 @@ public OperationFormatter(OperationDescription description, bool isRpc, bool isE
46
46
47
47
protected abstract void AddHeadersToMessage ( Message message , MessageDescription messageDescription , object [ ] parameters , bool isRequest ) ;
48
48
protected abstract void SerializeBody ( XmlDictionaryWriter writer , MessageVersion version , string action , MessageDescription messageDescription , object returnValue , object [ ] parameters , bool isRequest ) ;
49
+ protected virtual Task SerializeBodyAsync ( XmlDictionaryWriter writer , MessageVersion version , string action , MessageDescription messageDescription , object returnValue , object [ ] parameters , bool isRequest )
50
+ {
51
+ SerializeBody ( writer , version , action , messageDescription , returnValue , parameters , isRequest ) ;
52
+ return Task . CompletedTask ;
53
+ }
54
+
49
55
protected abstract void GetHeadersFromMessage ( Message message , MessageDescription messageDescription , object [ ] parameters , bool isRequest ) ;
50
56
protected abstract object DeserializeBody ( XmlDictionaryReader reader , MessageVersion version , string action , MessageDescription messageDescription , object [ ] parameters , bool isRequest ) ;
51
57
@@ -356,7 +362,7 @@ private async Task SerializeBodyContentsAsync(XmlDictionaryWriter writer, Messag
356
362
return ;
357
363
}
358
364
359
- SerializeBody ( writer , version , RequestAction , messageDescription , returnValue , parameters , isRequest ) ;
365
+ await SerializeBodyAsync ( writer , version , RequestAction , messageDescription , returnValue , parameters , isRequest ) ;
360
366
}
361
367
362
368
private IAsyncResult BeginSerializeBodyContents ( XmlDictionaryWriter writer , MessageVersion version , object [ ] parameters , object returnValue , bool isRequest ,
0 commit comments