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
- TimeSpanOrInfiniteValidator.cs
- RegisteredScript.cs
- ByValueEqualityComparer.cs
- RenderingBiasValidation.cs
- CLSCompliantAttribute.cs
- UserMapPath.cs
- XmlAnyElementAttributes.cs
- ObjectStateEntry.cs
- SecurityDocument.cs
- ReadingWritingEntityEventArgs.cs
- TraceUtils.cs
- DataGridViewColumnCollection.cs
- Int16.cs
- SamlNameIdentifierClaimResource.cs
- OutputCacheEntry.cs
- PointConverter.cs
- SqlFacetAttribute.cs
- FormsIdentity.cs
- RectValueSerializer.cs
- XmlDownloadManager.cs
- Inline.cs
- ViewGenResults.cs
- ListViewItemSelectionChangedEvent.cs
- DynamicQueryableWrapper.cs
- Panel.cs
- CodeIdentifiers.cs
- UnrecognizedPolicyAssertionElement.cs
- ShaperBuffers.cs
- Image.cs
- XmlSortKey.cs
- BindingContext.cs
- ListComponentEditorPage.cs
- FixedSchema.cs
- MarkerProperties.cs
- CharEntityEncoderFallback.cs
- SQLByte.cs
- SimpleFileLog.cs
- RoutedEventArgs.cs
- XamlFrame.cs
- TypeConverter.cs
- DataGridViewTextBoxColumn.cs
- ImageProxy.cs
- WindowsPen.cs
- XomlSerializationHelpers.cs
- BindValidator.cs
- IdentifierService.cs
- OrderedDictionaryStateHelper.cs
- TablePattern.cs
- RectConverter.cs
- ListenerElementsCollection.cs
- securestring.cs
- InputLanguageProfileNotifySink.cs
- AlignmentXValidation.cs
- MetadataArtifactLoaderComposite.cs
- Buffer.cs
- Permission.cs
- VariantWrapper.cs
- DataConnectionHelper.cs
- ConditionalDesigner.cs
- HandlerBase.cs
- SelectionRange.cs
- TextLineBreak.cs
- EventKeyword.cs
- ConfigPathUtility.cs
- Decorator.cs
- LinkDesigner.cs
- ActivityCollectionMarkupSerializer.cs
- WorkerRequest.cs
- DataControlCommands.cs
- OutputCacheProfile.cs
- DictionaryContent.cs
- DomNameTable.cs
- dataprotectionpermission.cs
- util.cs
- EventKeyword.cs
- FormParameter.cs
- DbSetClause.cs
- ConsoleTraceListener.cs
- DataGridTablesFactory.cs
- PersonalizationEntry.cs
- PerformanceCounters.cs
- FieldAccessException.cs
- ProgressBar.cs
- JsonEncodingStreamWrapper.cs
- DefaultEvaluationContext.cs
- RowUpdatingEventArgs.cs
- MetadataHelper.cs
- MessageAction.cs
- NameTable.cs
- EventLogSession.cs
- TextEditorTables.cs
- __ConsoleStream.cs
- XmlNodeReader.cs
- HMACSHA384.cs
- Dynamic.cs
- ReadOnlyCollectionBase.cs
- List.cs
- TagMapCollection.cs
- wgx_render.cs
- RequiredAttributeAttribute.cs