Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Channels / CloseSequenceResponse.cs / 1 / CloseSequenceResponse.cs
//---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------------------- namespace System.ServiceModel.Channels { using System.Xml; sealed class CloseSequenceResponse : BodyWriter { UniqueId identifier; public CloseSequenceResponse(UniqueId identifier) : base(true) { this.identifier = identifier; } public static CloseSequenceResponseInfo Create(XmlDictionaryReader reader) { if (reader == null) { DiagnosticUtility.DebugAssert("Argument reader cannot be null."); } CloseSequenceResponseInfo closeSequenceResponseInfo = new CloseSequenceResponseInfo(); XmlDictionaryString wsrmNs = WsrmIndex.GetNamespace(ReliableMessagingVersion.WSReliableMessaging11); reader.ReadStartElement(DXD.Wsrm11Dictionary.CloseSequenceResponse, wsrmNs); reader.ReadStartElement(XD.WsrmFeb2005Dictionary.Identifier, wsrmNs); closeSequenceResponseInfo.Identifier = reader.ReadContentAsUniqueId(); reader.ReadEndElement(); while (reader.IsStartElement()) { reader.Skip(); } reader.ReadEndElement(); return closeSequenceResponseInfo; } protected override void OnWriteBodyContents(XmlDictionaryWriter writer) { XmlDictionaryString wsrmNs = WsrmIndex.GetNamespace(ReliableMessagingVersion.WSReliableMessaging11); writer.WriteStartElement(DXD.Wsrm11Dictionary.CloseSequenceResponse, wsrmNs); writer.WriteStartElement(XD.WsrmFeb2005Dictionary.Identifier, wsrmNs); writer.WriteValue(this.identifier); writer.WriteEndElement(); writer.WriteEndElement(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GeneralTransform.cs
- ViewUtilities.cs
- EmbeddedMailObjectsCollection.cs
- PolygonHotSpot.cs
- TargetParameterCountException.cs
- IndexerHelper.cs
- Pair.cs
- ListBoxAutomationPeer.cs
- CodeCatchClause.cs
- BaseResourcesBuildProvider.cs
- NavigationService.cs
- DesignerDataParameter.cs
- ExpressionLink.cs
- SecurityUtils.cs
- ByeOperationCD1AsyncResult.cs
- CompatibleIComparer.cs
- ModelVisual3D.cs
- CodeIdentifiers.cs
- EntityDataSourceViewSchema.cs
- BitSet.cs
- ContentOperations.cs
- PrivilegeNotHeldException.cs
- WebHeaderCollection.cs
- ProcessRequestArgs.cs
- ViewBase.cs
- SecurityKeyType.cs
- SpecialNameAttribute.cs
- BitmapEffectInputConnector.cs
- ServiceNotStartedException.cs
- EntityViewContainer.cs
- ContentPlaceHolder.cs
- ToolStripItemEventArgs.cs
- HtmlInputFile.cs
- BigInt.cs
- shaperfactory.cs
- CommentEmitter.cs
- UnsafeNativeMethods.cs
- HelpEvent.cs
- ReaderWriterLockWrapper.cs
- SqlCharStream.cs
- DelegateSerializationHolder.cs
- ServiceManager.cs
- DataColumn.cs
- PriorityRange.cs
- RowSpanVector.cs
- FixedPageProcessor.cs
- Faults.cs
- EventMetadata.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- StrokeCollectionConverter.cs
- FontResourceCache.cs
- SemanticBasicElement.cs
- GraphicsContext.cs
- EncoderBestFitFallback.cs
- PartialCachingControl.cs
- MaskedTextBox.cs
- DeploymentSection.cs
- WebServiceParameterData.cs
- X509Certificate2.cs
- EntryWrittenEventArgs.cs
- HttpModuleCollection.cs
- ClientConfigPaths.cs
- Wrapper.cs
- HostProtectionPermission.cs
- OdbcCommandBuilder.cs
- ConfigurationValidatorAttribute.cs
- ContentFilePart.cs
- CallbackValidatorAttribute.cs
- MergeLocalizationDirectives.cs
- IODescriptionAttribute.cs
- CustomWebEventKey.cs
- DllNotFoundException.cs
- DataControlCommands.cs
- ServerReliableChannelBinder.cs
- VisualStateGroup.cs
- XmlSchemaException.cs
- Keyboard.cs
- EventDescriptor.cs
- SupportingTokenParameters.cs
- XmlDataContract.cs
- TransformBlockRequest.cs
- FrugalList.cs
- XsltQilFactory.cs
- ProxyGenerator.cs
- LineServicesRun.cs
- oledbmetadatacollectionnames.cs
- BlurBitmapEffect.cs
- Tablet.cs
- HttpPostedFileBase.cs
- BevelBitmapEffect.cs
- Canvas.cs
- EntityModelBuildProvider.cs
- AdPostCacheSubstitution.cs
- smtppermission.cs
- TableCell.cs
- XPathItem.cs
- DoubleConverter.cs
- GlyphElement.cs
- SafePointer.cs
- BitmapEffectDrawingContextState.cs