コード例 #1
0
ファイル: OperationFormatter.cs プロジェクト: yrest/wcf
                    internal OnWriteBodyContentsAsyncResult(OperationFormatterBodyWriter operationFormatterBodyWriter, XmlDictionaryWriter writer, AsyncCallback callback, object state)
                        : base(callback, state)
                    {
                        bool completeSelf = true;

                        _operationFormatter = operationFormatterBodyWriter.OperationFormatter;

                        IAsyncResult result = _operationFormatter.BeginSerializeBodyContents(writer, operationFormatterBodyWriter._version,
                                                                                             operationFormatterBodyWriter._parameters, operationFormatterBodyWriter._returnValue, operationFormatterBodyWriter._isRequest,
                                                                                             PrepareAsyncCompletion(s_handleEndOnWriteBodyContents), this);

                        completeSelf = SyncContinue(result);

                        if (completeSelf)
                        {
                            Complete(true);
                        }
                    }