Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Channels / TerminateSequenceResponse.cs / 1 / TerminateSequenceResponse.cs
//---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------------------- namespace System.ServiceModel.Channels { using System; using System.ServiceModel; using System.ServiceModel.Diagnostics; using System.Xml; using System.Xml.Schema; using System.Xml.Serialization; sealed class TerminateSequenceResponse : BodyWriter { UniqueId identifier; public TerminateSequenceResponse() : base(true) { } public TerminateSequenceResponse(UniqueId identifier) : base(true) { this.identifier = identifier; } public UniqueId Identifier { get { return this.identifier; } set { this.identifier = value; } } public static TerminateSequenceResponseInfo Create(XmlDictionaryReader reader) { if (reader == null) { DiagnosticUtility.DebugAssert("Argument reader cannot be null."); } TerminateSequenceResponseInfo terminateSequenceInfo = new TerminateSequenceResponseInfo(); XmlDictionaryString wsrmNs = WsrmIndex.GetNamespace(ReliableMessagingVersion.WSReliableMessaging11); reader.ReadStartElement(DXD.Wsrm11Dictionary.TerminateSequenceResponse, wsrmNs); reader.ReadStartElement(XD.WsrmFeb2005Dictionary.Identifier, wsrmNs); terminateSequenceInfo.Identifier = reader.ReadContentAsUniqueId(); reader.ReadEndElement(); while (reader.IsStartElement()) { reader.Skip(); } reader.ReadEndElement(); return terminateSequenceInfo; } protected override void OnWriteBodyContents(XmlDictionaryWriter writer) { XmlDictionaryString wsrmNs = WsrmIndex.GetNamespace(ReliableMessagingVersion.WSReliableMessaging11); writer.WriteStartElement(DXD.Wsrm11Dictionary.TerminateSequenceResponse, 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
- ServiceReference.cs
- ActivityScheduledRecord.cs
- MexHttpBindingCollectionElement.cs
- Selection.cs
- SchemaCollectionPreprocessor.cs
- DependencyPropertyKind.cs
- TemplateBindingExpressionConverter.cs
- DotExpr.cs
- FileDataSourceCache.cs
- EdgeProfileValidation.cs
- ComplexPropertyEntry.cs
- SafeFileMappingHandle.cs
- InkCanvasFeedbackAdorner.cs
- MenuEventArgs.cs
- SchemaElementDecl.cs
- ParsedAttributeCollection.cs
- ValidationHelper.cs
- WebPartTracker.cs
- CheckBox.cs
- Duration.cs
- CodeExporter.cs
- ContractBase.cs
- Oci.cs
- WebExceptionStatus.cs
- PinProtectionHelper.cs
- webbrowsersite.cs
- CallTemplateAction.cs
- ResourceDescriptionAttribute.cs
- SafeLibraryHandle.cs
- Wildcard.cs
- VirtualDirectoryMappingCollection.cs
- PermissionListSet.cs
- UrlMappingCollection.cs
- KeyNotFoundException.cs
- TargetFrameworkAttribute.cs
- MultiDataTrigger.cs
- DoubleLinkList.cs
- CapabilitiesPattern.cs
- SiteMapNodeItem.cs
- ThreadStartException.cs
- TextStore.cs
- Ref.cs
- ValidateNames.cs
- StylusPlugInCollection.cs
- UnsafeNativeMethods.cs
- C14NUtil.cs
- StdRegProviderWrapper.cs
- ObjectQueryProvider.cs
- WinFormsComponentEditor.cs
- XPathNodeIterator.cs
- ContentDesigner.cs
- TextCharacters.cs
- DataBoundControlHelper.cs
- SoapCodeExporter.cs
- X509CertificateInitiatorClientCredential.cs
- DesignerAttribute.cs
- RemoteArgument.cs
- DictionarySectionHandler.cs
- TraceListener.cs
- StringExpressionSet.cs
- ExtenderControl.cs
- HitTestParameters.cs
- MetaModel.cs
- TextLineBreak.cs
- TextBox.cs
- DrawingContextWalker.cs
- FormViewRow.cs
- DictionarySectionHandler.cs
- XappLauncher.cs
- Vector3DValueSerializer.cs
- PageAsyncTaskManager.cs
- MouseButtonEventArgs.cs
- ConfigurationValue.cs
- SqlClientMetaDataCollectionNames.cs
- RadioButtonList.cs
- bidPrivateBase.cs
- SqlCommandAsyncResult.cs
- DataGridViewCellStateChangedEventArgs.cs
- CodeThrowExceptionStatement.cs
- ToolBarButton.cs
- DataControlField.cs
- Accessible.cs
- UidPropertyAttribute.cs
- SpeechSeg.cs
- validation.cs
- oledbmetadatacolumnnames.cs
- ObjectDataSourceFilteringEventArgs.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- InstanceContext.cs
- TextDecoration.cs
- DBCSCodePageEncoding.cs
- ErrorFormatter.cs
- StringArrayConverter.cs
- EnumBuilder.cs
- NativeWindow.cs
- ManipulationCompletedEventArgs.cs
- MimeWriter.cs
- ReachFixedDocumentSerializerAsync.cs
- TextAutomationPeer.cs
- CodePageUtils.cs